← Back to SOC feed Coverage →

Detects suspicious .SRCINFO with NPM dependency and install script

yara HIGH signature-base
florian-roth
This rule was pulled from an open-source repository and enriched with AI. Validate in a test environment before deploying to production.
View original rule at signature-base →
Retrieved: 2026-08-07T11:00:00Z · Confidence: medium

Hunt Hypothesis

This hunt targets adversaries who leverage malicious .SRCINFO files containing NPM dependencies to execute hidden install scripts that can compromise build pipelines or introduce supply chain vulnerabilities. Proactively hunting for this behavior in Azure Sentinel is critical because these artifacts often bypass standard file integrity checks and can serve as a stealthy entry point for post-exploitation activities within containerized or Node.js environments.

YARA Rule

rule SUSP_LNX_ARCH_SRCINFO_NPM_Dependency_Jun26 {
   meta:
      description = "Detects suspicious .SRCINFO with NPM dependency and install script"
      author = "Marius Benthin"
      date = "2026-06-15"
      reference = "https://aur.archlinux.org/cgit/aur.git/commit/?h=hearthstone-linux-gui-bin&id=ecf810ac853e7149abd4e0c793b2517e9737edb8"
      hash = "2ee28d5866fdb46e439678ad92729b1cd71d2d871135d8d56a27cf6a6b49e649"
      score = 60
   strings:
      $s1 = "depends = npm\n"
      // install = python-pymilvus-deps.install
      $s2 = { 69 6E 73 74 61 6C 6C 20 3D 20 [1-50] 2E 69 6E 73 74 61 6C 6C }
   condition:
      filesize < 5KB
      and all of them
}

Deployment Notes

This YARA rule can be deployed in the following contexts:

This rule contains 2 string patterns in its detection logic.

References

False Positive Guidance

Here are 5 specific false positive scenarios for the rule “Detects suspicious .SRCINFO with NPM dependency and install script,” including suggested filters or exclusions:

Original source: https://github.com/Neo23x0/signature-base/blob/main/yara/susp_aur_packages.yar