Skip to content

armgit / pibot

Public Imported from GitHub
0

Open-source, local-first AI agent team for your desktop: multi-agent group chats, computer use, browser, MCP, routines and approvals. macOS, Windows, Linux + Android. Built on pi.

2.3 KB
Raw Blame

name: security-review description: "Use when code handles user input, permissions, secrets, file paths, command execution or outbound requests: check for common security problems." metadata: pibot-name: "Security review" pibot-params: "[{"name":"scope","description":"Files, module or change to review"}]"

Security review

Scope: {scope}

This is a read-only review: put findings in your reply and do not edit files.

Checks

  1. Injection: are SQL, shell commands, HTML/templates, regexes or paths built from user input? Use parameters, allow-lists or escaping.
  2. Paths and files: can a user-supplied path escape the allowed directory via .., absolute paths or symlinks? Are uploads checked for type and size?
  3. Authentication and authorisation: does every operation check who the caller is and whether they may touch this record? Any checks done only in the frontend?
  4. Secrets: any plaintext keys or tokens in code, config, logs, error messages or commit history? Are they read from environment variables or a secret store?
  5. Sensitive data: is personal data or chat content written to logs or sent to third parties? Is it encrypted in transit and at rest?
  6. Outbound requests: can they be steered at internal addresses (SSRF)? Are there timeouts and size limits? Is certificate checking disabled?
  7. Parsing untrusted data: JSON / YAML / XML / zip from outside: are size and depth limited, and is path traversal blocked?
  8. Dependencies: are new dependencies necessary, from trusted sources and pinned?
  9. Failure mode: on error, does it deny by default rather than allow?
  10. Frontend: any raw HTML rendering, eval, or links allowed with arbitrary protocols?

Output

**Summary**: high N / medium N / low N
1. [High/Medium/Low] file:line — problem — how it could be abused — fix
**Not covered**: parts you could not check and why

Describe the risk and the fix; do not write ready-to-use exploit code.

Scope

Use supplied information first; user requirements on count, format, and scope override this default template. Current capabilities govern permissions, primary/read-only workplaces, Plan mode, and budget; do not switch tools to bypass a refusal. This skill supplies a method, not authority to write, run commands, pay, send, commit, or publish. Identify unperformed or unverified steps.