Show HN: Xtra – a Python framework for reasoning about AI system threats

reboy1 pts0 comments

GitHub - TangibleResearch/xtra: Extended Threat Reasoning Architecture · GitHub

/" data-turbo-transient="true" />

Skip to content

Search or jump to...

Search code, repositories, users, issues, pull requests...

-->

Search

Clear

Search syntax tips

Provide feedback

--><br>We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Cancel

Submit feedback

Saved searches

Use saved searches to filter your results more quickly

-->

Name

Query

To see all available qualifiers, see our documentation.

Cancel

Create saved search

Sign in

/;ref_cta:Sign up;ref_loc:header logged out"}"<br>Sign up

Appearance settings

Resetting focus

You signed in with another tab or window. Reload to refresh your session.<br>You signed out in another tab or window. Reload to refresh your session.<br>You switched accounts on another tab or window. Reload to refresh your session.

Dismiss alert

{{ message }}

Uh oh!

There was an error while loading. Please reload this page.

TangibleResearch

xtra

Public

Notifications<br>You must be signed in to change notification settings

Fork

Star

main

BranchesTags

Go to file

CodeOpen more actions menu

Folders and files<br>NameNameLast commit message<br>Last commit date<br>Latest commit

History<br>2 Commits<br>2 Commits

xtra

xtra

LICENCE

LICENCE

README.md

README.md

pyproject.toml

pyproject.toml

View all files

Repository files navigation

xtra

Conversational social engineering detection using a Finite State Machine.

No LLMs. No embeddings. No semantic search. Pure algorithmic detection.

How it works

xtra models conversations as state transitions:

NEUTRAL → RAPPORT_BUILD → TRUST_ESTABLISHED → EXTRACTION_ATTEMPT → FLAGGED

Attacks are detected by their path through state space, not their content.

Signals tracked

Flattery density and momentum across turns

Asymmetry spike (give/ask ratio collapse)

Escalation velocity

Reciprocity pressure

Decoy turn detection

Scope mismatch

Usage

from xtra import Xtra, TurnSignals

result = Xtra().analyze(turns)<br>if result.is_attack:<br>print(result.flag_reason, result.confidence)

Part of Tangible Research

Making AI Tangible — github.com/TangibleResearch

About

Extended Threat Reasoning Architecture

Resources

Readme

License

MIT license

Uh oh!

There was an error while loading. Please reload this page.

Activity

Custom properties

Stars

stars

Watchers

watching

Forks

forks

Report repository

Releases

No releases published

Packages

Uh oh!

There was an error while loading. Please reload this page.

Contributors

Uh oh!

There was an error while loading. Please reload this page.

Languages

Python<br>100.0%

You can’t perform that action at this time.

xtra reload search error while loading

Related Articles