Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Rules

The Rules page lists the detection rules StepSecurity curates for files dropped by known supply chain campaigns. Each rule is an ordered chain of checks that runs against every file version in your repositories.

To open it, select Malicious Files > Rules in the GitHub section of the left navigation.

For each rule, StepSecurity shows:

  • Rule: the rule identifier, for example miasma-ide-autorun-github-setup-js

  • Campaign: the attack campaign the rule detects

  • Severity: the severity of a match, for example Critical or High

  • Checks: the number of checks in the rule and how many of them are required

  • Revision: the current revision of the rule, for example r1

  • Status: whether the rule is enabled

  • Updated: when the rule was last updated

Use the search box to find a rule by name, and the Campaign and severity filters to narrow the list.

Rules cover campaigns such as Shai-Hulud, Mini Shai-Hulud, GlassWorm, Miasma, TeamPCP, PolinRider, Contagious Interview, and the axios npm compromise. StepSecurity expands the rule set as new campaigns are identified, so check the Rules page for the current list.

Rule details

Select a rule to open its details panel. The panel shows the rule's campaign, revision, severity and status, the number of checks, when it was last updated, and a View findings for this rule link that opens the Findings page filtered to that rule.

Under Checks, the panel lists every check in the order it runs. A rule fires only when every required check matches. For each check, StepSecurity shows:

  • Name: what the check looks for, for example ide-config-file

  • Type: filename checks match the file's path, and content checks match the file's contents

  • Required or Optional: whether the check must match for the rule to fire

  • Pattern: the regular expression the check uses

  • Description: a plain-language explanation of what the pattern detects

For example, the miasma-ide-autorun-github-setup-js rule has five checks, three of them required:

#
Check
Type
Required
What it detects

1

ide-config-file

filename

Yes

Claude Code or Gemini CLI (Command Line Interface) settings, VS Code tasks, or a Cursor rule at the repository root

2

runs-miasma-loader

content

Yes

A command that runs node .github/setup.js, the Miasma worm's loader

3

runs-automatically

content

Yes

A session start hook, a task that runs when the folder opens, or a Cursor rule applied to every request

4

lure-text

content

No

The worm's lure text about IDE (Integrated Development Environment) integration and dependency setup

5

matches-every-session

content

No

A hook matcher that fires for every session

Last updated

Was this helpful?