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.
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
}
This YARA rule can be deployed in the following contexts:
This rule contains 2 string patterns in its detection logic.
Here are 5 specific false positive scenarios for the rule “Detects suspicious .SRCINFO with NPM dependency and install script,” including suggested filters or exclusions:
Automated CI/CD Pipeline Execution
.SRCINFO file to build a Node.js application. During the build phase, the pipeline executes npm install, which triggers the rule because the script parses dependencies defined in the .SRCINFO.svc-github-runner, jenkins-agent) or restrict detection to non-CI network segments. Add a filter for process names matching node.exe spawned by github-actions-runner.exe or java.exe (Jenkins).Developer Local Build Environments
.SRCINFO configuration for dependency management. They run a local build command (make install or a custom PowerShell script) which invokes npm to resolve dependencies listed in the file, triggering the alert during their development workflow.C:\DevWorkspace\InternalServices\*.SRCINFO.Scheduled Backup and Archive Jobs