Detectionmediumexperimental

New Agent Skills Installation Attempt Via Node.EXE

Detects the attempt to install new skills for AI agents using the "npx skills" command. Agent skills enhance AI agents with new capabilities, but attackers may abuse this mechanism to inject malicious commands executed by the agent on behalf of the user. The "npx skills" command can install skills for various agents (e.g., Claude Code, Cursor, and others). Analysts should review any installed skills to verify their legitimacy. Note: Tune this rule based on whether AI agent tooling is allowed in your environment. In environments where such tooling is authorized, this detection may reflect normal activity and the alert level should be adjusted accordingly. In environments where AI agent tooling is not permitted, this activity is likely suspicious and may require immediate investigation.

Convert In Phoenix Studio

Open this Sigma rule in the converter with the YAML preloaded and ready for backend selection.

Launch
Marco Pedrinazzi (InTheCyber)Created Tue Feb 03afa71271-6a97-4e47-810f-83120fb1a4cewindows
Log Source
WindowsProcess Creation
ProductWindows← raw: windows
CategoryProcess Creation← raw: process_creation

Events generated when a new process is spawned on the system. Covers command-line arguments, parent/child relationships, and process metadata.

Detection Logic
Detection Logic2 selectors
detection:
    selection_img:
        - Image|endswith: '\node.exe'
        - OriginalFileName: 'node.exe'
    selection_cli:
        CommandLine|contains|all:
            - 'npx-cli.js'
            - 'skills '
            - ' add '
    condition: all of selection_*
False Positives

This rule will be triggered when a new agent skill is installed regardless if it is benign or malicious.

High false positive rate expected in environments where AI agent tooling is authorized and commonly used.

Testing & Validation

Regression Tests

by Marco Pedrinazzi (@pedrinazziM) (InTheCyber)
Positive Detection Test1 matchevtx

Microsoft-Windows-Sysmon

MITRE ATT&CK
Rule Metadata
Rule ID
afa71271-6a97-4e47-810f-83120fb1a4ce
Status
experimental
Level
medium
Type
Detection
Created
Tue Feb 03
Path
rules/windows/process_creation/proc_creation_win_node_new_agent_skills_installed.yml
Raw Tags
attack.executionattack.t1059.007
View on GitHub