Back to skill

Security audit

DNS & Networking

Security checks for vulnerabilities and agentic risk

Overview

This networking troubleshooting skill is mostly coherent, but it includes privileged firewall-changing commands that can persist or disrupt access without adequate warnings or rollback guidance.

Review the firewall section carefully before installing or using this skill. Treat commands that use sudo with iptables, ufw, or socketfilterfw as administrative changes, not diagnostics; only run them with explicit intent, after checking current rules and planning rollback. The DNS, curl, port-test, and certificate troubleshooting snippets are broadly consistent with the skill’s purpose.

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
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Tool MisuseTool Parameter Abuse, Chaining Abuse, Unsafe Defaults
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
Findings (27)

Chaining Abuse

High
Category
Tool Misuse
Confidence
75% confidence
Finding

Tool calls are chained to bypass individual safety checks or escalate capabilities beyond what any single tool call would allow.

Content

Scanner excerpt · SKILL.md (reported line 83)May include surrounding context.

md
# Flush DNS cache
# macOS:
sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder
# Linux (systemd-resolved):
sudo systemd-resolve --flush-caches
# Windows:

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
60% confidence
Finding

Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).

Content

Scanner excerpt · SKILL.md (reported line 180)May include surrounding context.

fuser 3000/tcp # Linux

text

## curl Diagnostics

### Verbose request inspection

Sudo/Root Execution

Medium
Category
Privilege Escalation
Confidence
70% confidence
Finding

Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.

Content

Scanner excerpt · SKILL.md (reported line 83)May include surrounding context.

md
# Flush DNS cache
# macOS:
sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder
# Linux (systemd-resolved):
sudo systemd-resolve --flush-caches
# Windows:

Sudo/Root Execution

Medium
Category
Privilege Escalation
Confidence
70% confidence
Finding

Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.

Content

Scanner excerpt · SKILL.md (reported line 85)May include surrounding context.

md
# Flush DNS cache
# macOS:
sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder
# Linux (systemd-resolved):
sudo systemd-resolve --flush-caches
# Windows:

Sudo/Root Execution

Medium
Category
Privilege Escalation
Confidence
70% confidence
Finding

Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.

Content

Scanner excerpt · SKILL.md (reported line 269)May include surrounding context.

md
# Flush DNS cache
# macOS:
sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder
# Linux (systemd-resolved):
sudo systemd-resolve --flush-caches
# Windows:

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · SKILL.md (reported line 186)May include surrounding context.

bash
# Full verbose output (headers, TLS handshake, timing)
curl -v https://api.example.com/endpoint

# Show timing breakdown
curl -o /dev/null -s -w "

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · SKILL.md (reported line 197)May include surrounding context.

bash
# Full verbose output (headers, TLS handshake, timing)
curl -v https://api.example.com/endpoint

# Show timing breakdown
curl -o /dev/null -s -w "

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · SKILL.md (reported line 200)May include surrounding context.

bash
# Full verbose output (headers, TLS handshake, timing)
curl -v https://api.example.com/endpoint

# Show timing breakdown
curl -o /dev/null -s -w "

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · SKILL.md (reported line 232)May include surrounding context.

bash
# Full verbose output (headers, TLS handshake, timing)
curl -v https://api.example.com/endpoint

# Show timing breakdown
curl -o /dev/null -s -w "

Context-Inappropriate Capability

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The skill is framed as DNS/network debugging, but this section instructs users to change firewall state, add allow/deny rules, and persist them across reboot. These are privileged system reconfiguration actions that can disrupt host security posture or connectivity if copied blindly, and they exceed read-only diagnostics.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The markdown includes direct firewall modification commands such as enabling UFW, adding ACCEPT/DROP rules, and resetting rules, but does not clearly warn about lockout risk, service interruption, or how to revert safely. In a troubleshooting skill, users may execute these snippets verbatim and unintentionally weaken defenses or break access.

Content

No source excerpt is available for this finding.

Sudo/Root Execution

Medium
Category
Privilege Escalation
Confidence
70% confidence
Finding

Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.

Content

Scanner excerpt · SKILL.md (reported line 241)May include surrounding context.

bash
# List all rules
sudo iptables -L -n -v

# Allow incoming on port 80
sudo iptables -A INPUT -p tcp --dport 80 -j ACCEPT

Sudo/Root Execution

Medium
Category
Privilege Escalation
Confidence
70% confidence
Finding

Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.

Content

Scanner excerpt · SKILL.md (reported line 279)May include surrounding context.

bash
# List all rules
sudo iptables -L -n -v

# Allow incoming on port 80
sudo iptables -A INPUT -p tcp --dport 80 -j ACCEPT

Sudo/Root Execution

Medium
Category
Privilege Escalation
Confidence
95% confidence
Finding

This command appends an iptables ACCEPT rule using elevated privileges, directly changing host firewall behavior. In a generic troubleshooting skill, users may apply such commands without understanding exposure implications, potentially opening services unintentionally.

Content

Scanner excerpt · SKILL.md (reported line 244)May include surrounding context.

md
sudo iptables -L -n -v

# Allow incoming on port 80
sudo iptables -A INPUT -p tcp --dport 80 -j ACCEPT

# Allow incoming from specific IP
sudo iptables -A INPUT -s 203.0.113.0/24 -p tcp --dport 22 -j ACCEPT

Sudo/Root Execution

Medium
Category
Privilege Escalation
Confidence
94% confidence
Finding

This command allows SSH access from a subnet by modifying firewall rules with root privileges. While sometimes legitimate, it changes access control and can unintentionally broaden remote access if used out of context or with incorrect CIDR ranges.

Content

Scanner excerpt · SKILL.md (reported line 247)May include surrounding context.

md
sudo iptables -A INPUT -p tcp --dport 80 -j ACCEPT

# Allow incoming from specific IP
sudo iptables -A INPUT -s 203.0.113.0/24 -p tcp --dport 22 -j ACCEPT

# Block incoming on a port
sudo iptables -A INPUT -p tcp --dport 3306 -j DROP

Sudo/Root Execution

Medium
Category
Privilege Escalation
Confidence
93% confidence
Finding

This privileged command drops incoming traffic on port 3306, which can cause service outages or troubleshooting confusion if copied casually. It is a security-control modification, not passive diagnosis, and can impact production connectivity immediately.

Content

Scanner excerpt · SKILL.md (reported line 250)May include surrounding context.

md
sudo iptables -A INPUT -s 203.0.113.0/24 -p tcp --dport 22 -j ACCEPT

# Block incoming on a port
sudo iptables -A INPUT -p tcp --dport 3306 -j DROP

# Save rules (persist across reboot)
sudo iptables-save > /etc/iptables/rules.v4

Sudo/Root Execution

Medium
Category
Privilege Escalation
Confidence
93% confidence
Finding

Persisting iptables rules to disk with sudo makes firewall changes survive reboot, increasing the blast radius of mistakes. In a debugging skill, persistence is especially risky because temporary experiments can become long-term misconfigurations.

Content

Scanner excerpt · SKILL.md (reported line 253)May include surrounding context.

sudo iptables -A INPUT -p tcp --dport 3306 -j DROP

Save rules (persist across reboot)

sudo iptables-save > /etc/iptables/rules.v4

text

### ufw (simpler, Ubuntu/Debian)

Sudo/Root Execution

Medium
Category
Privilege Escalation
Confidence
94% confidence
Finding

Enabling UFW is a privileged state change that can immediately alter host access behavior depending on defaults. Without warning about existing SSH sessions or default deny policies, this can lock users out or interrupt services.

Content

Scanner excerpt · SKILL.md (reported line 260)May include surrounding context.

bash
# Enable
sudo ufw enable

# Allow/deny
sudo ufw allow 80/tcp

Sudo/Root Execution

Medium
Category
Privilege Escalation
Confidence
93% confidence
Finding

This command opens port 80 through UFW using elevated privileges, changing external exposure of the system. That is a configuration action rather than diagnosis and can unintentionally publish a service.

Content

Scanner excerpt · SKILL.md (reported line 263)May include surrounding context.

md
sudo ufw enable

# Allow/deny
sudo ufw allow 80/tcp
sudo ufw allow 443/tcp
sudo ufw allow from 203.0.113.0/24 to any port 22
sudo ufw deny 3306

Sudo/Root Execution

Medium
Category
Privilege Escalation
Confidence
93% confidence
Finding

Opening port 443 via UFW modifies firewall policy and may expose HTTPS services unintentionally. Presented as a generic snippet, it lacks context checks about whether the service should be public or only internally reachable.

Content

Scanner excerpt · SKILL.md (reported line 264)May include surrounding context.

md
# Allow/deny
sudo ufw allow 80/tcp
sudo ufw allow 443/tcp
sudo ufw allow from 203.0.113.0/24 to any port 22
sudo ufw deny 3306

Sudo/Root Execution

Medium
Category
Privilege Escalation
Confidence
92% confidence
Finding

Allowing SSH from a subnet with sudo is a live access-control change that can broaden remote management exposure if the subnet is too broad or incorrect. This is materially more sensitive than passive troubleshooting guidance.

Content

Scanner excerpt · SKILL.md (reported line 265)May include surrounding context.

md
# Allow/deny
sudo ufw allow 80/tcp
sudo ufw allow 443/tcp
sudo ufw allow from 203.0.113.0/24 to any port 22
sudo ufw deny 3306

# Check status

Sudo/Root Execution

Medium
Category
Privilege Escalation
Confidence
92% confidence
Finding

Denying port 3306 via UFW can break database connectivity immediately and is a privileged firewall modification. The example lacks warning that it may interrupt production traffic and should not be run casually during diagnosis.

Content

Scanner excerpt · SKILL.md (reported line 266)May include surrounding context.

md
sudo ufw allow 80/tcp
sudo ufw allow 443/tcp
sudo ufw allow from 203.0.113.0/24 to any port 22
sudo ufw deny 3306

# Check status
sudo ufw status verbose

Sudo/Root Execution

Medium
Category
Privilege Escalation
Confidence
96% confidence
Finding

Resetting all UFW rules is a destructive privileged action that can remove intended protections or break required access patterns. In a broad troubleshooting guide, this is particularly risky because it encourages a high-impact rollback-to-default approach without safeguards.

Content

Scanner excerpt · SKILL.md (reported line 272)May include surrounding context.

sudo ufw status verbose

Reset all rules

sudo ufw reset

text

### macOS firewall

Sudo/Root Execution

Medium
Category
Privilege Escalation
Confidence
93% confidence
Finding

Enabling the macOS firewall is a privileged configuration change that can affect application connectivity and remote management. As presented, it lacks warning about behavioral changes and troubleshooting side effects.

Content

Scanner excerpt · SKILL.md (reported line 282)May include surrounding context.

md
sudo /usr/libexec/ApplicationFirewall/socketfilterfw --getglobalstate

# Enable
sudo /usr/libexec/ApplicationFirewall/socketfilterfw --setglobalstate on

# Allow an application
sudo /usr/libexec/ApplicationFirewall/socketfilterfw --add /usr/local/bin/myapp

Sudo/Root Execution

Medium
Category
Privilege Escalation
Confidence
91% confidence
Finding

Adding an application to the macOS firewall allowlist changes trust policy for a specific binary using sudo. This can weaken host filtering controls if users adapt the example to real applications without review.

Content

Scanner excerpt · SKILL.md (reported line 285)May include surrounding context.

sudo /usr/libexec/ApplicationFirewall/socketfilterfw --setglobalstate on

Allow an application

sudo /usr/libexec/ApplicationFirewall/socketfilterfw --add /usr/local/bin/myapp

text

## Proxy Configuration

Static analysis

No suspicious patterns detected.