Back to skill

Security audit

Session Rotate 80

Security checks for vulnerabilities and agentic risk

Overview

This skill is a small, disclosed session-rotation helper that only prints threshold status messages and does not access files, credentials, networks, or persistent memory.

Install this only if you want automatic session-rotation prompts when context usage reaches the configured threshold. The operational messages are currently Chinese-only, so non-Chinese users may need to adjust the text before using it in their workflow.

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
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
Findings (3)

Natural-Language Policy Violations

Medium
Confidence
94% confidence
Finding
The natural-language instructions, usage guidance, and operational output descriptions are presented exclusively in Chinese. Under the policy, forcing a specific language without user opt-in is a locale/language policy violation unless the constraint is explicitly justified, which is not present here.

Natural-Language Policy Violations

Medium
Confidence
97% confidence
Finding
The expected output includes a fixed Chinese message (`上下文达到80%(used/max),自动切换新会话`) and the file does not indicate that the skill is China-specific or that users can opt into another language. This is a natural-language policy concern because it imposes a locale/language choice on all users by default.

Natural-Language Policy Violations

Medium
Confidence
95% confidence
Finding
This code emits user-facing session rotation and handoff messages only in Chinese. The file does not offer a language choice or document a justified region-specific constraint, which creates a natural-language locale policy violation under the stated rules.

Static analysis

No suspicious patterns detected.