Skip to main content

TryClear — Semantic image threat evaluation from the command line

Project description

TryClear CLI

A picture is worth a thousand words. Attackers know that. Your security tools don't.

TryClear evaluates images for semantic threats — phishing, brand impersonation, QR code attacks, hidden page techniques, and visual prompt injection.

Setup

# 1. Install
pip install tryclear

# 2. Authenticate (grab your API key from tryclear.io/settings)
tryclear auth

# 3. Evaluate
tryclear eval suspicious-screenshot.png

That's it. Forensic verdict in your terminal.

Commands

Command Description
tryclear auth Store your API key
tryclear eval <file> Evaluate an image, get a forensic verdict
tryclear eval --json <file> Structured JSON output for scripting
tryclear status <id> Check evaluation status
tryclear report <id> Fetch full forensic report

Supported Formats

PNG, JPG, JPEG, BMP, TIFF, SVG, WebP, HEIC/HEIF

Example

$ tryclear eval bank-document.tiff

  ◆ TryClear v2.0.0

  bank-document.tiff · 269 KB · image/tiff

  ╭──────────────────────────────────────────────────╮
  │   MALICIOUS · High Risk                          │
  ╰──────────────────────────────────────────────────╯

  This image impersonates Bank of America using a
  hidden page technique to evade security scanners.

  What we found
    Page 1 appeared clean, but hidden content on
    Page 2 revealed the threat.

    • Bank of America branding (0.98)
    • QR code → hxxps://mail[.]google[.]com/mail/u/0/

  MITRE T1566

  Full report → https://tryclear.io/report/ana_demo

CI/CD Integration

tryclear eval ./assets/ --fail-on malicious --exit-code 1
Exit Code Meaning
0 CLEAR
1 SUSPICIOUS
2 MALICIOUS
3 Error

Auth

The CLI resolves your API key in this order:

  1. TRYCLEAR_API_KEY environment variable
  2. ~/.config/tryclear/config.json
  3. ~/.config/clear/config.json

Learn More

tryclear.io

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tryclear-3.0.0.tar.gz (21.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tryclear-3.0.0-py3-none-any.whl (25.1 kB view details)

Uploaded Python 3

File details

Details for the file tryclear-3.0.0.tar.gz.

File metadata

  • Download URL: tryclear-3.0.0.tar.gz
  • Upload date:
  • Size: 21.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for tryclear-3.0.0.tar.gz
Algorithm Hash digest
SHA256 ef520e77d2df8a8e67534b5f8e552d3688076604bcd1641a27e4f3c2d2e09a30
MD5 f60506f2d53725543e00330ef91a2395
BLAKE2b-256 4515945cbefddad7340f55f17402e169cf01f967426c2efe475a848fb05577e0

See more details on using hashes here.

File details

Details for the file tryclear-3.0.0-py3-none-any.whl.

File metadata

  • Download URL: tryclear-3.0.0-py3-none-any.whl
  • Upload date:
  • Size: 25.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for tryclear-3.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5661d3dbb98420fd5efa7241e61b64c8bbeb0cb4364bae31b65e1e44fe37426c
MD5 6d0d3f9207e91b2598fcfcba961366fd
BLAKE2b-256 14f9bca1582ff1a7965700bd8838fe64acf60411079d3f8e2ca17b3c62c4094e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page