Back to skill

Security audit

Portal

Security checks for vulnerabilities and agentic risk

Overview

This skill is a PKU portal CLI guide whose credential and payment-related behavior is disclosed and aligned with its stated campus network-fee purpose.

Install only if you intend to let the agent use the PKU portal CLI. Treat netfee commands as sensitive: confirm recharge amounts, avoid shared machines, and clear or protect ~/.config/info/portal/ and keyring entries if the host is not trusted.

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
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
Findings (2)

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

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

Content

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

info-auth check portal free-classroom 一教 # 无需登录 portal calendar --year 2025-2026 --semester first # 无需登录 portal netfee status # 需要 keyring 凭据 portal netfee recharge 10 -m wechat # 微信扫码付款,二维码直接打终端 portal netfee watch -t 5 || notify "PKU netfee low"

text

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

The skill explicitly states that session data is persisted under ~/.config/info/portal/ while also handling campus-network credentials and payment-related workflows, but it does not warn users about what is stored, for how long, or how it is protected. In this context, local session persistence increases the risk of credential or authenticated-session theft from shared machines, backups, or weak filesystem permissions.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.