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.
TypeScript agentai-agentai-agentsai-assistantandroidautomationchatgptcoding-agentcomputer-usedesktop-appelectronllmlocal-firstmcpmulti-agentollamaopenaiprivacyself-hostedtypescript
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
- Injection: are SQL, shell commands, HTML/templates, regexes or paths built from user input? Use parameters, allow-lists or escaping.
- Paths and files: can a user-supplied path escape the allowed directory via
.., absolute paths or symlinks? Are uploads checked for type and size? - 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?
- 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?
- Sensitive data: is personal data or chat content written to logs or sent to third parties? Is it encrypted in transit and at rest?
- Outbound requests: can they be steered at internal addresses (SSRF)? Are there timeouts and size limits? Is certificate checking disabled?
- Parsing untrusted data: JSON / YAML / XML / zip from outside: are size and depth limited, and is path traversal blocked?
- Dependencies: are new dependencies necessary, from trusted sources and pinned?
- Failure mode: on error, does it deny by default rather than allow?
- 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.