atlasomnia/hermes-custom-pack/application-security-review
Claude Code and agent skill by atlasomnia/hermes-custom-pack
- community
Checking that the SKILL.md file is still in the repository.
application-security-review — Review application repos for concrete security issues, especially trust-boundary failures, prompt-injection paths, auth/proxy mistakes, validation gaps, and risky dependencies.
Install
npx vskill@latest install atlasomnia/hermes-custom-pack/application-security-reviewSKILL.md
The same SKILL.md was published earlier as atlasomnia/donna-starter/application-security-review.
Application Security Review
Perform a practical source-level security review of an application repository. Favor confirmed issues over speculative ones. The goal is a useful operator-facing report: severity, file/line references, exploit path, impact, and remediation.
Use when
- The user asks to "scan for security issues", "review for security", or "audit this repo/app".
- The user asks whether a native app or realtime AI/voice prototype is ready to sell, ship, distribute, or submit to an app store.
- Reviewing AI-integrated apps, browser/UIs, add-ins, extensions, native mobile apps, or local proxies.
- Evaluating whether a prototype is safe for local-only use vs real deployment.
For native iOS commercial-readiness reviews, load and follow the readiness checklist. It expands the audit beyond security into StoreKit, App Store compliance, realtime audio reliability, consumer UX, unit economics, and release gates.
Review priorities
- Trust boundaries first.
- What input is untrusted?
- What backend capabilities sit behind the UI?
- Can model output or user-controlled content trigger side effects?
- Auth and exposure.
- Localhost services, reverse proxies, injected auth headers, CORS, TLS, origin restrictions.
- Validation before execution.
- JSON/action parsing, schema checks, range/size limits, before/after verification, allowlists.
- Data handling.
- What leaves the machine, what is logged, whether sensitive user data is silently sent to cloud backends.
- For public-release reviews, scan both tracked source and git metadata for PII: local hostnames, personal emails, profile names, private org/business names, absolute user paths, and secret/token patterns.
- Dependencies.
- Separate runtime risk from dev-toolchain risk.
Workflow
- Read top-level README and manifests/config first to understand architecture.
- Locate network entry points and auth flow.
- Trace untrusted input to powerful sinks:
- LLM prompts
- filesystem/terminal/network tools
- code execution
- document/workbook mutations
- Search for:
- fetch/XHR/API calls
- proxies and bearer-token injection
- JSON.parse on model output
- eval/Function/innerHTML/dangerous DOM sinks
- wildcard CORS or broad allowlists
- dependency versions with known advisories
- For public-release/privacy scans, include repository metadata and the actual remote publication surface as well as source:
- Before first push, inspect staged/tracked files, local author metadata, and reachable history to catch accidental local-hostname identities and workstation paths.
- Scan tracked/source files for emails, hostnames,
<user-home>/...,C:\\Users\\<name>, private profile names, internal org names, token prefixes, and generated run artifacts. - After push or history rewrite, make the publication verdict from a fresh remote clone/mirror, every public branch/tag and PR ref, PR text, commit metadata, and all reachable blobs. Do not count ignored files, virtual environments, local reflogs, or stale remote-tracking refs as currently published content.
- Use an independent-model review when practical, then verify findings yourself; classifiers often mislabel loopback, placeholder paths, or code symbols as PII.
- Confirm the update reaches the intended default/publication branch rather than remaining only on a feature branch.
- Distinguish generic loopback (
127.0.0.1), contextual test IPs, GitHub noreply identities, placeholder fixtures, and code symbols ending in.localfrom real PII or private-machine identifiers.
- Run dependency audit when package managers/lockfiles exist.
- Distinguish:
- confirmed issue
- lower-confidence concern / defense-in-depth note
- End with deployment posture:
- safe for toy local use
- needs hardening before sensitive/internal use
- not suitable as-is
Type alignment across trust boundaries
- When the same domain type (e.g.
ProviderMode,CredentialKind,ActionType) is defined independently on BOTH sides of a trust boundary (renderer ↔ backend, client ↔ server), search for ALL definitions. - A type that drifts creates silent acceptance bugs: one side accepts a value the other cannot handle, or a new value is added on one side but not the other.
- Evidence pattern: search for the same union-type literal strings across multiple files in different process contexts. Count the files. Flag any mismatch.
- Fix: Extract a single shared definition in a neutral module. When cross-import is architecturally blocked (e.g. renderer cannot import electron types), enforce alignment with a CI snapshot test, a duplicate-detection script, or at minimum a comment chain linking the duplicated definitions.
Inconsistent URL validation across similar provider endpoints
- When an application lets the user configure multiple API or LLM endpoint URLs (local LLM, OpenRouter, custom proxy, etc.), verify that EACH endpoint is validated with the same depth:
- URL parsing (not just string-length check)
- Protocol allowlist (
http:/https:only, rejectfile:,data:) - Hostname restriction (loopback, private-LAN, or explicit production allowlist)
- Credential rejection (reject URLs with embedded
user:password@) - A field that only checks string length while sibling fields have full
new URL()+ hostname validation is a fragility/SSRF risk — it looks validated to future readers. - Evidence pattern: search for
assertStringor string-length-only validation on fields named*Endpoint,*Url,*BaseUrlwhile nearby similar fields parse the URL and check the hostname. - Fix: Apply the same validator (or a documented subclass) to all semantically similar URL-bearing fields. When secondary validation exists downstream, the upstream should still be consistent — defense-in-depth.
Two-phase validation (upstream gate + downstream gate)
- Sometimes a validation function passes a field with only a string-length check because a downstream function does the real URL/hostname validation. This is acceptable only when the division of responsibility is EXPLICITLY documented and every code path that consumes the validated result goes through the downstream gate.
- Risk: A future code path that reuses the validated output without passing through the downstream gate inherits the weaker check. Trace all consumers.
- Fix: Either move the full validation upstream, or add a comment on the minimal check explaining why it is intentionally deferred and naming the downstream function that provides the real gate.
Prototype-sensitive dictionaries at trust boundaries
- Treat every attacker-controlled property name as hostile when code indexes a trusted configuration/alias/allowlist object.
- Flag
trustedMap[inputKey]on ordinary objects unless the lookup first proves an own data property of the expected type. InheritedObject.prototypeentries—or prototype pollution—can turn an unknown field into an approved alias or capability. - Flag
result[inputKey] = valuewhen arbitrary keys are materialized. The special__proto__setter can mutate the result prototype or erase the field before a downstream validator sees it. - Preferred repair: inspect the trusted map with
Object.getOwnPropertyDescriptor, accept only own data descriptors, and create output keys withObject.definePropertyas ordinary enumerable/writable/configurable data properties. - Require production-entry regressions for polluted prototype key → approved key, polluted key →
__proto__, JSON-parsed own__proto__, and an existing canonical key plus the polluted unknown key. Restore temporary prototype mutations infinally. - Green schema validation alone is insufficient when preprocessing runs first. Verify unknown fields survive preprocessing and reach the authoritative validator unchanged except for explicitly approved syntax normalization.
AI-integrated app checklist
- For desktop applications that export diagnostics or a user-shareable Support Report, follow the guidance covering main-process authority, exact allowlisted schemas, code-only diagnostic storage, payload-free renderer IPC, atomic export, consent/disclosure rules, adversarial tests, and bounded independent-review recovery.
- For local AI desktop apps that ingest documents, maintain a managed source vault, expose course/task-oriented IPC, perform grounded generation, or persist packet-bound assessment, review the guidance covering canonical path/symlink handling, ZIP-bomb limits, UTF-8 chunking, immutable course authority, exact citations, persisted-draft publishing, packet-scoped assessment, real model-client integration, and controller verification after model review.
- For profile-scoped local-agent desktop apps, review the guidance; it covers legacy authority routes, server-side profile binding, source provenance, secure-storage edge cases, and deletion-derived state.
- Treat document/spreadsheet/page content as untrusted prompt input.
- If the backend is a full agent, check whether prompt injection can reach tools or side effects.
- If model output drives actions, require strict schema validation and operator review.
- Verify previews actually match what will be written.
- Check whether the app silently transmits sensitive content to cloud models depending on backend config.
- For Office task panes with native Hermes/plugin routing, require out-of-band binding between the originating turn and the exact pane/session. A UUID carried in model-visible text is not authorization; add a two-pane negative test even when every identifier is syntactically valid.
- For credential-injecting loopback proxies, audit wildcard CORS, missing body/concurrency limits, arbitrary plaintext upstream overrides, and predictable credential fallbacks. Loopback-only binding does not prevent cross-origin web access.
Self-hosted agent control-plane checklist
When the reviewed application is a multi-tenant agent ledger/control plane, inspect the deployment boundary as carefully as the HTTP routes:
- Resolve the effective Compose/Kubernetes environment after
environmentoverridesenv_file; do not trust redacted tool output as literal source content. - Treat Docker-socket mounts, host PID/IPC/network modes, privileged containers, and in-app self-update endpoints as host-capability boundaries. An admin-only route may still be a critical trust boundary when it can pull images, execute commands, create/stop/delete containers, or replace the running service.
- Compare image tags with immutable digests/signatures and inspect whether update code verifies provenance.
:latestplus a privileged updater is a supply-chain and rollback concern, not merely a convenience feature. - Verify that encryption keys are mandatory before sensitive credentials are accepted or stored. A documented plaintext fallback is a deployment blocker for sensitive/internal use.
- Treat company/workspace bearer tokens as the authenticated principal. Do not assume agent names, request-body
agentId, Hermes profiles, or model fields provide security isolation unless the server enforces those bindings. - For every webhook or message route accepting a resource ID, prove tenant ownership in the same query or an explicit check. A foreign key proving that a thread/task/artifact exists does not prove it belongs to the caller's tenant.
- Report these as confirmed defects only when the code path demonstrates the missing check; otherwise label them as defense-in-depth or verification gaps.
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/application-security-review/SKILL.md
Popularity
- Repository stars
- 59
- Repository forks
- 6
- 7-day trend score
- 20
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/atlasomnia/hermes-custom-pack/application-security-review)