Back to skill

Security audit

Safe Share

Security checks for vulnerabilities and agentic risk

Overview

This skill is a local text sanitizer that is clearly scoped to replacing secrets and sensitive identifiers before sharing.

Install this skill only for local sanitization workflows. It is designed to reduce accidental sharing of secrets, but users should still manually review output because deterministic rules can miss custom identifiers, names, addresses, or context-specific sensitive data.

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
  • System Prompt LeakageDirect Leakage, Indirect Extraction, Tool-Based Exfiltration
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
Findings (6)

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · references/test-cases.md (reported line 28)May include surrounding context.

Input:

text
Set OPENAI_API_KEY=sk-examplesecret123456789 in your .env file.
Then call https://api.example.com/build?token=raw-demo-token&id=42

Direct Prompt Extraction

High
Category
System Prompt Leakage
Confidence
85% confidence
Finding

Skill contains instructions that could directly expose system prompts, internal rules, or hidden instructions to users or external parties.

Content

Scanner excerpt · scripts/sanitize_text.py (reported line 177)May include surrounding context.

python
for rule in RULES:
        def _replacer(match: Match[str], rule: Rule = rule) -> str:
            counts[rule.name] += 1
            return rule.replacer(match, mode)

        text = rule.pattern.sub(_replacer, text)

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
88% confidence
Finding

The skill instructs use of a local script and references additional files, but it does not declare an explicit tool scope such as permissions or allowed-tools. That mismatch can cause the agent runtime to infer broader file-read or network capabilities than intended, weakening least-privilege controls and making accidental overreach or data exposure more likely. In a sanitization skill, this is especially relevant because users may provide highly sensitive material for processing.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% 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 · references/test-cases.md (reported line 29)May include surrounding context.

md
"Authorization: Bearer super-secret-token",
                "OPENAI_API_KEY=sk-examplesecret123456789",
                "Contact: dev@example.com",
                "url=https://api.example.com/build?token=raw-demo-token&id=42",
                "Cookie: sessionid=abc123def456",
                "server ip: 10.1.2.3",
                "call me at +1 (415) 555-0199",

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% 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 · scripts/smoke_test.py (reported line 34)May include surrounding context.

python
"Authorization: Bearer super-secret-token",
                "OPENAI_API_KEY=sk-examplesecret123456789",
                "Contact: dev@example.com",
                "url=https://api.example.com/build?token=raw-demo-token&id=42",
                "Cookie: sessionid=abc123def456",
                "server ip: 10.1.2.3",
                "call me at +1 (415) 555-0199",

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% 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 · scripts/test_safe_share.py (reported line 18)May include surrounding context.

python
"Authorization: Bearer super-secret-token",
                "OPENAI_API_KEY=sk-examplesecret123456789",
                "Contact: dev@example.com",
                "url=https://api.example.com/build?token=raw-demo-token&id=42",
                "Cookie: sessionid=abc123def456",
                "server ip: 10.1.2.3",
                "call me at +1 (415) 555-0199",

Static analysis

Detected: suspicious.exposed_secret_literal

File appears to expose a hardcoded API secret or token.

Critical
Code
suspicious.exposed_secret_literal
Location
references/test-cases.md:11

File appears to expose a hardcoded API secret or token.

Critical
Code
suspicious.exposed_secret_literal
Location
scripts/smoke_test.py:31

File appears to expose a hardcoded API secret or token.

Critical
Code
suspicious.exposed_secret_literal
Location
scripts/test_safe_share.py:15