Rules
The Rules page lists the malicious-file detection rules StepSecurity curates for files dropped by known supply chain campaigns. Each rule names the files to scan and the groups of indicators to match on every enrolled device.
To open it, select Malicious Files > Rules in the Developer Machines section of the left navigation.
Rules are maintained by StepSecurity and apply to every enrolled device automatically, so there is nothing to configure. You can deactivate a rule if you do not want it to run in your organization.

Rules list
For each rule, StepSecurity shows:
Rule: the rule identifier, for example
binding-gyp-command-execCampaign: the attack campaign the rule detects, for example
shai-huludGroups: the number of indicator groups the rule matches
Files scanned: the file path patterns the rule scans on each device, for example
**/binding.gypor**/.github/setup.jsStatus:
EnabledorDeactivated
Use the search box to find a rule by name, and the Campaign filter to narrow the list to one campaign.
Deactivating and activating a rule
Select Deactivate on a rule's row to stop it from running. Deactivating a rule stops the scan on every device in your organization and moves the rule's findings to the Suppressed tab on the Findings page. The rule's status changes to Deactivated.
To turn the rule back on, select Activate on its row.
What the rules detect
Detection rules cover files associated with known supply chain attacks, including:
A malicious
binding.gypthat triggers code execution duringnpm installEditor and AI-tool configuration and instruction files that auto-execute on project open or session start
The following files are examples of editor and AI-tool integration points that can be abused to achieve code execution when a developer opens a project or starts a session:
.claude/setup.mjs
Anthropic Claude Code
SessionStart hook: runs on every new Claude Code session
.claude/settings.json
Anthropic Claude Code
Settings injection
.cursor/rules/setup.mdc
Cursor
Custom rules file: loaded on project open
.gemini/settings.json
Google Gemini
Settings injection
.vscode/tasks.json
Visual Studio Code
runOn: folderOpen auto-execute
.vscode/setup.mjs
Visual Studio Code
Task-triggered setup script
.github/setup.js
GitHub Actions
Workflow injection
For example, rules for the Miasma campaign flag files such as .cursorrules, .windsurfrules, copilot-instructions.md, and settings.json on affected machines.
How rules are maintained
StepSecurity maintains and expands the rule set continuously. As new attack techniques are identified, StepSecurity adds and updates rules centrally, and your fleet is evaluated against them automatically, so the campaigns and file patterns covered grow over time without any action on your part.
To see the files these rules have flagged on your devices, go to Findings.
Last updated
Was this helpful?