Back to skill

Security audit

npm defender2

Security checks for vulnerabilities and agentic risk

Overview

This skill is a local npm malware scanner with no evidence of hidden execution, exfiltration, or persistence, though its RLO setup uses an unpinned external Python package.

Use the bundled scanner only on paths you intend to inspect, since it reads local source files and may print snippets from suspicious content. Install `rlo-detect` only if you need RLO filename detection, preferably in an isolated virtual environment, and consider pinning or reviewing the package first. Expect Chinese documentation and CLI output.

Vulnerability Patterns
  • Insecure DependenciesIntroduces malicious components through unsafe dependency sources
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
  • Agent Memory PoisoningWrites attacker-controlled rules into memory that affect later sessions
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
Findings (1)

T08 · Insecure Dependencies

Warning
Location
SKILL.md:10
Finding

Unpinned and Unnecessary Third-Party Dependency Installation

Content
View full analysis
Remediation
View remediation
``` 4. Use a hash-locked requirements file, such as: ```text rlo-detect== --hash=sha256: ``` Install it with: ```bash pip install --require-hashes -r requirements-rlo.txt ``` 5. Review and lock all transitive dependencies, and document the expected package index and publisher. 6. Install optional scanning tools in an isolated virtual environment or restricted container without administrative privileges or access to sensitive credentials. 7. Clearly distinguish the bundled scanner's dependency-free operation from optional third-party tooling in `SKILL.md`. ]]>
Vulnerability Patterns
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
  • Behavioral ASTexec() Call, eval() Call, Dynamic Import
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (4)

Obfuscated Code

High
Category
Supply Chain
Confidence
90% confidence
Finding

Code contains obfuscation (base64, hex encoding with execution). This is often used to hide malicious functionality.

Content

Scanner excerpt · scripts/pua.py (reported line 103)May include surrounding context.

python
# 危险代码模式
    DANGEROUS_PATTERNS = [
        (r'eval\s*\(\s*atob\s*\(', 'eval(atob())代码执行'),
        (r'eval\s*\(\s*Buffer\.from\s*\(', 'eval(Buffer.from())代码执行'),
        (r'Function\s*\(\s*atob\s*\(', 'Function构造器代码执行'),
        (r'new\s+Function\s*\(\s*["\'][^"\']*["\']\s*\)', '动态函数构造'),

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The manifest description and main documentation are written in Chinese and present the skill as operating in that language by default, with no indication that users can choose another language. This can violate a language/locale policy when skills must not force a specific language without explicit opt-in or documented justification.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

This Python file is in scope for natural-language policy checks. The module docstrings, class/method descriptions, CLI help text, and printed report strings are all presented in Chinese, with no opt-in or alternative locale, which constitutes a language/locale policy issue under the stated rules.

Content

No source excerpt is available for this finding.

Dynamic import via __import__()

Medium
Category
Dangerous Code Execution
Confidence
75% confidence
Finding

Dynamic import() can load arbitrary modules at runtime, bypassing static analysis and potentially importing malicious code.

Content

Scanner excerpt · scripts/pua.py (reported line 333)May include surrounding context.

python
sys.exit(1)
    
    print(f"🔍 开始扫描: {args.path}")
    print(f"⏱️  时间: {__import__('datetime').datetime.now().strftime('%Y-%m-%d %H:%M:%S')}")
    
    scanner = FileSystemScanner(args.path)
    results = scanner.scan(recursive=args.recursive)

Static analysis

Detected: suspicious.dynamic_code_execution

Dynamic code execution detected.

Critical
Code
suspicious.dynamic_code_execution
Location
scripts/pua.py:103