Back to skill

Security audit

android-network-audit

Security checks for vulnerabilities and agentic risk

Overview

This is a read-only Android/Termux network-audit skill with some accuracy and localization limitations, but no hidden persistence, exfiltration, or destructive behavior was found.

Install only if you are comfortable with a local read-only audit that inspects network configuration and socket state. Treat its results as a helpful first pass, not a complete security assessment, especially for UDP listeners, IPv6/fallback cases, and automated JSON consumption.

Vulnerability Patterns
  • Insecure Skill Coding PracticesFinds exploitable flaws such as hardcoded secrets or command injection
  • 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 (2)

T09 · Insecure Skill Coding Practices

Warning
Location
scripts/audit_net.sh:67
Finding

Listener Detection and Risk Classification Can Understate Network Exposure

Content
View full analysis
/dev/null 2>&1; then PORTS=$(ss -tulpen 2>/dev/null | grep -E 'LISTEN' | tr '\n' '|') elif command -v netstat >/dev/null 2>&1; then PORTS=$(netstat -tulpen 2>/dev/null | grep -E 'LISTEN' | tr '\n' '|') else PORTS=$( ( [ -r /proc/net/tcp ] && echo "fallback /proc/net/tcp"; ) 2>/dev/null) fi if echo "$PORTS" | grep -qE '0\.0\.0\.0|:::' ; then RISK="MEDIUM" fi ``` ### Technical Analysis The script filters both `ss` and `netstat` output exclusively for the text `LISTEN`. TCP servers normally use the `LISTEN` state, but UDP sockets are commonly reported as `UNCONN` or without a TCP-style listening state. Consequently, exposed UDP services can be omitted from `PORTS`. The fallback does not parse `/proc/net/tcp`, and it does not inspect `/proc/net/tcp6`, `/proc/net/udp`, or `/proc/net/udp6`. It merely reports that `/proc/net/tcp` is readable. This fails to enumerate actual bind addresses and ports when `ss` and `netstat` are unavailable. Risk classification only distinguishes wildcard-bound sockets as `MEDIUM`. It does not implement the documented `HIGH` classification for sensitive services such as SSH, ADB, or databases exposed on every interface. It also does not consider authentication, firewall state, proxy combinations, or hotspot exposure as described by the skill documentation. ### Attack Path 1. A service is configured to listen over UDP, or a sensitive TCP service is bound to `0.0.0.0` or `::`. 2. The user runs the audit to determine whether the device is safely configured. 3. A UDP service is removed by the `grep -E 'LISTEN'` filter, or a sensitive TCP service is classified only as `MEDIUM`. 4. If neither `ss` nor `netstat` is available, ...[truncated 783 chars]
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Note
Location
scripts/audit_net.sh:83
Finding

Unescaped Runtime Data Produces Invalid or Structurally Manipulated JSON

Content
View full analysis
Remediation
View remediation
Vulnerability Patterns
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • 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 (2)

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The phrase 'Use when the conditions in the description are met' does not specify concrete trigger phrases, scope boundaries, or exclusion conditions. In a README, this leaves activation overly dependent on unstated context and can cause unintended or inconsistent invocation.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

This markdown file contains operational instructions exclusively in Indonesian, including core headings, usage guidance, warnings, and procedures. Under the policy rule for natural-language violations, forcing a specific language without user opt-in or a documented regional justification is a locale-policy issue.

Content

No source excerpt is available for this finding.