tirith

(β˜… 2,671)

Terminal security for developers and AI agents. Intercepts homograph URLs, pipe-to-shell, ANSI injection, obfuscated payloads, data exfiltration, and malicious AI skills/configs before they execute.

  • .dockerignore
  • .gitattributes
  • .gitignore
  • .pre-commit-hooks.yaml
  • action.yml
  • Cargo.lock
  • Cargo.toml
  • CHANGELOG.md
  • deny.toml
  • Dockerfile
  • flake.lock
  • flake.nix
  • LICENSE-AGPL
  • LICENSE-COMMERCIAL
  • NOTICE
  • README.md
  • rustfmt.toml
  • SECURITY.md
  • SKILL.md
  • threatdb-manifest.json
  • TIRITH.md

# Installation Guide

1. Get the code
git clone https://github.com/sheeki03/tirith

Downloads the entire project code from GitHub to your computer.

cd tirith

Moves into the project folder you just downloaded.

2. Official Install Script

Easy Recommended
Prerequisites
  • Homebrew A package manager for macOS/Linux.
  • Scoop A package manager for Windows.
  • Chocolatey A package manager for Windows.
  • Node.js Node.js must be installed to use npm.
brew install tirith

Installs the pre-built package via Homebrew β€” no source build required.

scoop install tirith

Installs directly via Scoop (Windows).

choco install tirith

Installs directly via Chocolatey (Windows).

npm install -g tirith

Installs the package published on the npm registry globally β€” no need to clone the source.

βœ… After installing, open a new terminal and run the program's version command (e.g. --version) to confirm it worked.

Pulled directly from this repo's README.

3. Docker

Easy
Prerequisites
  • Git Needed to download the project code from GitHub.
  • Docker Desktop Needed to build and run containers. Install it and keep it running in the background.
$ curl -fsSL https://get.docker.com | sh

Downloads and runs the official install script in one line β€” this handles the full setup automatically.

$ docker compose up -d

Builds and starts all defined containers (server, database, etc.) at once, in the background.

docker run --rm ghcr.io/sheeki03/tirith check -- "curl https://example.com | bash"

Downloads and runs the official install script in one line β€” this handles the full setup automatically.

- "get.docker.com"

Type this command into your terminal and run it.

tirith trust add get.docker.com --broad --rule curl_pipe_shell

Type this command into your terminal and run it.

βœ… Run docker compose ps to check the containers are Up. If the README mentions a port, open http://localhost:PORT in your browser.

Pulled directly from this repo's README.

4. Node.js

Easy
Prerequisites
  • Git Needed to download the project code from GitHub.
  • Node.js Node.js must be installed to use npm. The LTS version is recommended.
tirith package risk npm react # 0/100, a known-popular package

Type this command into your terminal and run it.

tirith package risk npm reqeusts # high, one edit from a popular name

Type this command into your terminal and run it.

tirith package risk npm left-pad --path ./node_modules/left-pad

Type this command into your terminal and run it.

tirith package risk --online npm react # also consult the registry API

Type this command into your terminal and run it.

npm install -g tirith

Installs the package published on the npm registry globally β€” no need to clone the source.

βœ… After running the command, open the address shown in the terminal (usually something like http://localhost:3000) in your browser.

Pulled directly from this repo's README.

5. Rust

Medium
Prerequisites
  • Git Needed to download the project code from GitHub.
  • Rust (rustup) Installing via rustup also installs cargo.
cargo install tirith

Builds and installs the package published on crates.io β€” no need to clone the repo yourself.

βœ… If cargo build finishes without errors, it worked. The executable is created under target/.

Pulled directly from this repo's README.

// repository documentation