Skip to content

Siemphony is in beta and still being built. How a rule earns its badge.

Siemphony’s repertoire

Filesystem searched for credential strings in files

Siemphony@siemphonymediumT1552.001unverified
AN0856's usable arm is the search itself: a text-search tool pointed at files with a credential keyword as the pattern, which is how insecurely stored passwords are found before they are used. The rule gates on the tool and on the keyword, both read off the one command line, and deliberately does not gate on a file extension — MITRE's FileNamePattern knob is where an estate narrows this to its own `.config`, `.env` or `.xml` conventions, and a fixed extension list would drop the single-file case entirely. The brief's other two Windows sources are not used because neither can carry the behaviour: Sysmon EventID 11 fires on file creation, not on the read that discovery consists of, and Security 4624/4648 record the later logon, which only becomes evidence when joined to the file access across MITRE's TimeWindow knob — a correlation Sigma cannot express. Prerequisite: this is written in the Sysmon EventID 1 vocabulary; where an estate feeds Security 4688 into `process_creation` instead, `CommandLine` is populated only if *Audit Process Creation* and the separate *Include command line in process creation events* policy are both on, and without them every event arrives with an empty command line and this rule is silently blind rather than quiet. UNVERIFIED AS AUTHORED — derived from MITRE ATT&CK DET0307, not hand-written and not tested by its author. Any lab result is on this rule's own page.Full description

The detection

The 4 SIEM queries below are previews produced by Siemphony’s own translator, not pySigma, and none has been executed against a real backend — review before you deploy.

detection.yml

Sentinel · KQL

Run this as a search.

DeviceProcessEvents| where ((ProcessCommandLine contains "findstr" or ProcessCommandLine contains "Select-String") and (ProcessCommandLine contains "password" or ProcessCommandLine contains "passwd" or ProcessCommandLine contains "pwd=" or ProcessCommandLine contains "credential" or ProcessCommandLine contains "secret" or ProcessCommandLine contains "apikey" or ProcessCommandLine contains "api_key" or ProcessCommandLine contains "accesskey" or ProcessCommandLine contains "connectionstring"))

Splunk · SPL

Run this as a search.

index=* ((CommandLine="*findstr*" OR CommandLine="*Select-String*") AND (CommandLine="*password*" OR CommandLine="*passwd*" OR CommandLine="*pwd=*" OR CommandLine="*credential*" OR CommandLine="*secret*" OR CommandLine="*apikey*" OR CommandLine="*api_key*" OR CommandLine="*accesskey*" OR CommandLine="*connectionstring*"))

Elastic · ES|QL

Run this as a search.

FROM logs-*| WHERE ((TO_LOWER(process.command_line) LIKE "*findstr*" OR TO_LOWER(process.command_line) LIKE "*select-string*") AND (TO_LOWER(process.command_line) LIKE "*password*" OR TO_LOWER(process.command_line) LIKE "*passwd*" OR TO_LOWER(process.command_line) LIKE "*pwd=*" OR TO_LOWER(process.command_line) LIKE "*credential*" OR TO_LOWER(process.command_line) LIKE "*secret*" OR TO_LOWER(process.command_line) LIKE "*apikey*" OR TO_LOWER(process.command_line) LIKE "*api_key*" OR TO_LOWER(process.command_line) LIKE "*accesskey*" OR TO_LOWER(process.command_line) LIKE "*connectionstring*"))

Wazuh · XML rule

Deploy to your manager — this is a rule, not a search.

<group name="sigma,windows,process_creation,">  <!-- Rule ids must be unique on your manager; 100000+ is the user range. -->  <rule id="100000" level="7">    <!-- Set <if_sid> to the decoder/base rule for windows so this only evaluates relevant events. -->    <field name="CommandLine" type="pcre2">(?i)(findstr|Select-String)</field>    <field name="CommandLine" type="pcre2">(?i)(password|passwd|pwd=|credential|secret|apikey|api_key|accesskey|connectionstring)</field>    <description>Filesystem searched for credential strings in files</description>    <mitre>      <id>T1552.001</id>    </mitre>  </rule></group>

Verdicts · reactions · comments

Community

Verdicts from engineers who actually deployed it, and the conversation around it.

Log in to react
Not yet reported on

Nobody has run this in a real environment and said what happened.

Verdicts from engineers who deployed it

0 cast

No verdicts reported yet. The first one is worth more than the tenth — say what you ran it against.

Log in to report a verdict.

Log in to join the discussion.

No comments yet. Someone who deploys this will have something to say about it.