{
 "schema_version": 1,
 "generated": "2026-10-24",
 "id": "inin-zou-codex-privacy-hud--block-network-calls-touching-sensitive-files",
 "repo": "inin-zou/codex-privacy-hud",
 "repo_url": "https://github.com/inin-zou/codex-privacy-hud",
 "repo_slug": "inin-zou-codex-privacy-hud",
 "title": "Block network commands that name sensitive paths",
 "page_title": "How to block network commands that name sensitive paths with Codex Privacy Hud",
 "summary": "Use the default-on lexical network guard to deny Codex network commands that reference sensitive files.",
 "who": "A developer who lets Codex run shell commands on a machine with credential or key files, and wants a denial before data leaves.",
 "problem": "A network command such as a curl call can send the contents of a sensitive file to a remote host without any visible check.",
 "outcome": "Recognized network commands that contain known-sensitive-path references are denied, and the denial is counted in the session HUD.",
 "steps": [
  "Run the one-line installer with `curl -fsSL https://raw.githubusercontent.com/inin-zou/codex-privacy-hud/main/install.sh | sh`.",
  "Restart Codex so the hooks load from the installed plugin.",
  "In a new session, ask Codex to run a network command that references a known-sensitive path in a test directory.",
  "Confirm the command is denied and that the denial appears in the Privacy HUD for that session.",
  "Check that the denial is recorded separately from the local read guard, which is an independent check."
 ],
 "agent_prompt": "Using the repo inin-zou/codex-privacy-hud, install the plugin and run a test network command that references <sensitive-path-placeholder> inside a Codex session. Expected output: a denial from the lexical network guard and a denials-issued count in the HUD. Verify that no file contents were opened or rewritten by the guard, as the README states.",
 "agents": [
  "codex"
 ],
 "difficulty": "Intermediate",
 "time": "30 minutes",
 "basis": "readme",
 "caveat": "The guard is lexical, so it only catches recognized network commands with known-sensitive-path references, and shell-derived file identities remain unresolved.",
 "category": "Security and science",
 "tags": [
  "Security and science"
 ],
 "lang": "python",
 "requirements": [
  "macOS on Apple Silicon or Intel (Linux and Windows are not packaged)",
  "Codex CLI installed and signed in, with `codex --version` printing a version",
  "Python 3.11 or newer on your PATH",
  "About 3 GB of disk if you want name and address detection"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [
  {
   "tag": "remote-script",
   "notice": "The installer downloads and runs a script from GitHub, so verify the source before piping it to sh."
  }
 ],
 "best": false,
 "score": 0.8,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/inin-zou-codex-privacy-hud/block-network-calls-touching-sensitive-files/",
 "md": "https://dedupedai.com/use-cases/inin-zou-codex-privacy-hud/block-network-calls-touching-sensitive-files/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/inin-zou-codex-privacy-hud--block-network-calls-touching-sensitive-files.json",
 "api_version": "v1"
}
