T09 · Insecure Skill Coding Practices
- Location
SKILL.md:6- Finding
Adult-content filter inversion and missing response validation
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This skill is a Review item because it claims to return non-adult images but instructs the agent to request likely R18 content from a third-party image API without validating the result.
Install only if you are comfortable with a skill that contacts a third-party image API for NSFW-adjacent prompts and may return adult or untrusted image links despite saying it returns non-R18 content. The publisher should clarify the content policy, narrow the triggers, validate r18=false, and structurally validate returned URLs before this is treated as low-risk.
SKILL.md:6Adult-content filter inversion and missing response validation
SKILL.md:50Untrusted image URL is returned without structural origin validation
The skill documentation materially contradicts itself: it claims to return a non-R18 'surprise' image, but the API example uses r18=1, which typically requests adult content. In a skill explicitly triggered by NSFW-related prompts, this ambiguity can cause the agent to fetch or return content that violates user expectations, policy boundaries, or safety controls.
The trigger definition is overly broad, includes many generic sexualized terms, and ends with an open-ended 'etc.', which makes invocation scope unpredictable. That ambiguity increases the chance the skill activates unintentionally and performs third-party retrieval of sensitive or adult-themed content in contexts where the user did not clearly consent.
The skill instructs the agent to make a live request to a third-party image API and return third-party-hosted content, but it does not clearly disclose that network transmission and remote content sourcing to the user. In a sensitive NSFW-adjacent context, lack of transparency around external calls and unvetted content sources increases privacy, trust, and safety risk.
This skill performs an external network request to api.lolicon.app to retrieve image metadata/URLs, which constitutes data egress and introduces dependency on an untrusted third-party content source. Even if no obvious secrets are sent here, external retrieval in an adult-content-triggered skill can expose user intent and return unsafe or policy-violating material.
Use curl to call the API:
# r18=1 is required for filtering
curl -s "https://api.lolicon.app/setu/v2?num=1&r18=1&size=original"
This JSON file contains example prompts such as "来张色图" and "来点刺激的" that are broad, colloquial phrases without clear scope or exclusion conditions. In a manifest-like eval file, such vague trigger examples can imply activation on everyday speech and do not define when the skill should or should not respond.
The instructions conflict on which field to extract from the API response: one line says to return content inside data[number].url, while the schema and processing steps reference data[number].urls.original. This mismatch can lead to incorrect parsing, broken output handling, or unsafe fallback logic if an agent tries to guess alternate fields from untrusted API responses.
No suspicious patterns detected.