Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix: add exclusion webshell rule#5867

Open
Neo23x0 wants to merge 1 commit intomasterfrom
fix-linux-fps
Open

fix: add exclusion webshell rule#5867
Neo23x0 wants to merge 1 commit intomasterfrom
fix-linux-fps

Conversation

@Neo23x0
Copy link
Collaborator

@Neo23x0 Neo23x0 commented Feb 13, 2026

Add filter_common exclusions for ParentCommandLine 'openclaw-gateway' and CommandLine 'ip neigh show', update the rule condition to exclude these benign matches, and bump the modified date to 2025-02-13. This reduces false positives for common legitimate network discovery activity.

Summary of the Pull Request

Fixes false positives in OpenClaw deployments. OpenClaw and similar agents run the "ip neigh show" command with a parent that is "node". It's not web shell activity. The level "high" of this rule caused me to add a filter for this false positive.

Changelog

fix: fix false positives in OpenClaw environments

Example Log Event

{
  "CommandLine": "ip neigh show",
  "CurrentDirectory": "/home/neo/clawd",
  "Image": "/usr/bin/ip",
  "LogonId": "1000",
  "ParentCommandLine": "openclaw-gateway",
  "ParentImage": "/usr/bin/node",
  "ParentProcessId": "439637",
  "ProcessId": "730567",
  "User": "neo",
  "level": "error",
  "message": "Sigma match",
  "rule_author": "Florian Roth (Nextron Systems), Nasreddine Bencherchali (Nextron Systems)",
  "rule_date": "2021-10-15",
  "rule_description": "Detects suspicious sub processes of web server processes",
  "rule_falsepositives": [
    "Web applications that invoke Linux command line tools"
  ],
  "rule_id": "818f7b24-0fba-4c49-a073-8b755573b9c7",
  "rule_level": "high",
  "rule_modified": "2022-12-28",
  "rule_path": "/opt/aurora-linux/sigma-rules/linux/process_creation/proc_creation_lnx_webshell_detection.yml",
  "rule_references": [
    "https://www.acunetix.com/blog/articles/web-shells-101-using-php-introduction-web-shells-part-2/",
    "https://media.defense.gov/2020/Jun/09/2002313081/-1/-1/0/CSI-DETECT-AND-PREVENT-WEB-SHELL-MALWARE-20200422.PDF"
  ],
  "rule_status": "test",
  "rule_tags": [
    "attack.persistence",
    "attack.t1505.003"
  ],
  "rule_title": "Linux Webshell Indicators",
  "sigma_match_details": {
    "Image": [
      "/ip"
    ],
    "ParentImage": [
      "/node"
    ]
  },
  "sigma_match_fields": [
    "Image",
    "ParentImage"
  ],
  "sigma_match_strings": [
    "'/ip' in Image",
    "'/node' in ParentImage"
  ],
  "sigma_rule": "818f7b24-0fba-4c49-a073-8b755573b9c7",
  "sigma_tags": [
    "attack.persistence",
    "attack.t1505.003"
  ],
  "sigma_title": "Linux Webshell Indicators",
  "timestamp": "2026-02-13T15:09:35.20610728+01:00"
}

Fixed Issues

Fixes false positives in OpenClaw deployments.

SigmaHQ Rule Creation Conventions

  • If your PR adds new rules, please consider following and applying these conventions

Add filter_common exclusions for ParentCommandLine 'openclaw-gateway' and CommandLine 'ip neigh show', update the rule condition to exclude these benign matches, and bump the modified date to 2025-02-13. This reduces false positives for common legitimate network discovery activity.
@github-actions github-actions bot added Rules Review Needed The PR requires review Linux Pull request add/update linux related rules labels Feb 13, 2026
filter_common:
- ParentCommandLine: 'openclaw-gateway'
- CommandLine: 'ip neigh show'
condition: 1 of selection_* and not filter_common
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The rule is of level informational which we usually do not add filter to, since its meant for enrichment mainly.

The rule you want to update is Detects suspicious sub processes of web server processes

@nasbench nasbench added the Author Input Required changes the require information from original author of the rules label Feb 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Author Input Required changes the require information from original author of the rules Linux Pull request add/update linux related rules Review Needed The PR requires review Rules

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants