Two YAML rule files have improper \t whitespace causing YAML load (scanner) errors (using the python PyYAML==6.0.1 module)
Expected behavior
No YAML error. I am not familiar with how these are rendered, so unsure how the extra \t got in there, but possibly some keys may need whitespace stripped before dumping.
error loading: ../security_content/detections/cloud/o365_zap_activity_detection.yml - while scanning for the next token
found character '\t' that cannot start any token
in "<unicode string>", line 51, column 15:
- Attacker
^:
error loading: ../security_content/detections/cloud/o365_sharepoint_malware_detection.yml - while scanning for the next token
found character '\t' that cannot start any token
in "<unicode string>", line 41, column 13:
- Victim
^:
Describe the bug
Two YAML rule files have improper
\t
whitespace causing YAML load (scanner
) errors (using the pythonPyYAML==6.0.1
module)Expected behavior
No YAML error. I am not familiar with how these are rendered, so unsure how the extra
\t
got in there, but possibly some keys may need whitespace stripped before dumping.Additional context
Detailed error messages:
security_content/detections/cloud/o365_zap_activity_detection.yml
repr()
of issue:- Attacker\t\n product:
security_content/detections/cloud/o365_sharepoint_malware_detection.yml
repr()
of issue:- Victim\t\n - name: