Back to skill

Security audit

traffic-monitor

Security checks for vulnerabilities and agentic risk

Overview

This skill is a straightforward server traffic monitor with disclosed local vnstat usage and no evidence of hidden exfiltration, destructive behavior, or privilege escalation.

Install only if you want a Chinese-language traffic monitor for a server using vnstat on eth0 with a 2 TB monthly limit. Review the interface name and monthly limit before relying on reports, and treat the systemctl examples as manual administrative commands rather than automatic skill behavior.

Vulnerability Patterns
  • 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
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
Vulnerability Patterns
  • 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
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (3)

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
90% confidence
Finding

The natural-language content of the skill is presented exclusively in Chinese, including usage instructions and operational notes. This can violate a language/locale policy when the skill forces a specific language without user opt-in and no region-specific justification is documented.

Content

No source excerpt is available for this finding.

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
70% confidence
Finding

subprocess module calls execute external commands. Without careful input validation, this enables command injection.

Content

Scanner excerpt · traffic_report.py (reported line 32)May include surrounding context.

python
def get_vnstat_json():
    """Get traffic data from vnstat in JSON format."""
    try:
        result = subprocess.run(
            ["vnstat", "-i", INTERFACE, "--json", "m"],
            capture_output=True,
            text=True,

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The user-facing report strings are hard-coded in Chinese, including the title, labels, and warning text. This enforces a specific language/locale without any opt-in, selection mechanism, or documented justification, which matches the language-policy violation criteria.

Content

No source excerpt is available for this finding.