A complete AI agency at your fingertips - From frontend wizards to Reddit community ninjas, from whimsy injectors to reality checkers. Each agent is a specialized expert with personality, processes, and proven deliverables.
Shell
Remove attacker-controlled command-line detection exclusions
Rudy Celeklic23759b7bc46
diff --git a/security/security-threat-detection-engineer.md b/security/security-threat-detection-engineer.mdindex b162a71d..745c3bf8 100644--- a/security/security-threat-detection-engineer.md+++ b/security/security-threat-detection-engineer.md@@ -122,7 +122,6 @@ fields:### Compiled to Splunk SPL```spl-| Suspicious PowerShell Encoded Command — compiled from Sigma ruleindex=windows sourcetype=WinEventLog:Sysmon EventCode=1(ParentImage="*\\cmd.exe" OR ParentImage="*\\wscript.exe"OR ParentImage="*\\cscript.exe" OR ParentImage="*\\mshta.exe"@@ -135,7 +134,6 @@ index=windows sourcetype=WinEventLog:Sysmon EventCode=1ParentImage LIKE "%mshta.exe", 85,1=1, 70)-| where NOT match(CommandLine, "(?i)(SCCM|ConfigMgr|Intune)")| table _time Computer User ParentImage Image CommandLine risk_score| sort - risk_score```@@ -152,9 +150,6 @@ DeviceProcessEvents| where ProcessCommandLine has_any ("-enc ", "-EncodedCommand", "-ec ", "FromBase64String")-// Exclude known legitimate automation-| where ProcessCommandLine !contains "SCCM"- and ProcessCommandLine !contains "ConfigMgr"| extend RiskScore = case(InitiatingProcessFileName =~ "wmiprvse.exe", 90,InitiatingProcessFileName =~ "mshta.exe", 85,@@ -165,6 +160,24 @@ DeviceProcessEvents| sort by RiskScore desc```+### Validate Exceptions Against Attacker-Controlled Input++Keep these example queries free of command-line substring exclusions. An attacker+can append `# SCCM`, `# ConfigMgr`, or `# Intune` to a suspicious PowerShell command;+that string does not establish that a trusted deployment system launched it.+Investigate the alert using host enrollment, expected service identity, verified+parent binary path/signature, and the deployment job's audit trail. If an exception+is approved, scope it to that evidence, record an owner and expiry, and test it+against benign automation and malicious lookalikes. A parent executable name alone+is not sufficient either. Keep the Sigma and SIEM implementations equivalent and+label any environment-specific exception explicitly.++Replay the same positive process event with all four command lines: the original,+then the original plus each of those three comments. All four must alert. Include+a negative non-PowerShell event to prove the rule is not matching everything.+Use [Sigma rule testing and tuning guidance](https://sigmahq.io/docs/basics/rules.html)+and the target SIEM's own query test facilities before deployment.+### MITRE ATT&CK Coverage Assessment Template```markdown# MITRE ATT&CK Detection Coverage Report