frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: DeepTeam – Penetration Testing for LLMs

https://github.com/confident-ai/deepteam
3•jeffreyip•1y ago
Hi HN, we’re Jeffrey and Kritin, and we’re building DeepTeam (https://trydeepteam.com), an open-source Python library to scan LLM apps for security vulnerabilities. You can start “penetration testing” by defining a Python callback to your LLM app (e.g. `def model_callback(input: str)`), and DeepTeam will attempt to probe it with prompts designed to elicit unsafe or unintended behavior.

Note that the penetration testing process treats your LLM app as a black-box - which means that DeepTeam will not know whether PII leakage has occurred in a certain tool call or incorporated in the training data of your fine-tuned LLM, but rather just detect that it is present. Internally, we call this process “end-to-end” testing.

Before DeepTeam, we worked on DeepEval, an open-source framework to unit-test LLMs. Some of you might be thinking, well isn’t this kind of similar to unit-testing?

Sort of, but not really. While LLM unit-testing focuses on 1) accurate eval metrics, 2) comprehensive eval datasets, penetration testing focuses on the haphazard simulation of attacks, and the orchestration of it. To users, this was a big and confusing paradigm shift, because it went from “Did this pass?” to “How can this break?”.

So we thought to ourselves, why not just release a new package to orchestrate the simulation of adversarial attacks for this new set of users and teams working specifically on AI safety, and borrow DeepEval’s evals and ecosystem in the process?

Quickstart here: https://www.trydeepteam.com/docs/getting-started#detect-your...

The first thing we did was offer as many attack methods as possible - simple encoding ones like ROT13, leetspeak, to prompt injections, roleplay, and jailbreaking. We then heard folks weren’t happy because the attacks didn’t persist across tests and hence they “lost” their progress every time they tested, and so we added an option to `reuse_simulated_attacks`.

We abstracted everything away to make it as modular as possible - every vulnerability, attack, can be imported in Python as `Bias(type=[“race”])`, `LinearJailbreaking()`, etc. with methods such as `.enhance()` for teams to plug-and-play, build their own test suite, and even to add a few more rounds of attack enhancements to increase the likelihood of breaking your system.

Notably, there are a few limitations. Users might run into compliance errors when attempting to simulate attacks (especially for AzureOpenAI), and so we recommend setting `ignore_errors` to `True` in case that happens. You might also run into bottlenecks where DeepTeam does not cover your custom vulnerability type, and so we shipped a `CustomVulnerability` class as a “catch-all” solution (still in beta).

You might be aware that some packages already exist that do a similar thing, often known as “vulnerability scanning” or “red teaming”. The difference is that DeepTeam is modular, lightweight, and code friendly. Take Nvidia Garak for example, although comprehensive, has so many CLI rules, environments to set up, it is definitely not the easiest to get started, let alone pick the library apart to build your own penetration testing pipeline. In DeepTeam, define a class, wrap it around your own implementations if necessary, and you’re good to go.

We adopted a Apache 2.0 license (for now, and probably in the foreseeable future too), so if you want to get started, `pip install deepteam`, use any LLM for simulation, and you’ll get a full penetration report within 1 minute (assuming you’re running things asynchronously). GitHub: https://github.com/confident-ai/deepteam

Excited to share DeepTeam with everyone here – let us know what you think!

Workers' share of income explains why many Americans are down on the economy

https://www.cbsnews.com/news/labor-share-income-lowest-since-world-war-ii/
1•ripe•40s ago•0 comments

Reasoning About Async Rust with State Machines

https://aibodh.com/posts/async-rust-chapter-2-what-async-fn-compiles-into/
1•febin•48s ago•0 comments

HTTP Status Codes Explained (100–599)

https://urlwatch.io/blog/http-status-codes.php
1•mssblogs•49s ago•0 comments

Probes – Uptime and Performance Monitoring

https://probes.dev
1•blainsmith•52s ago•0 comments

Mojo Quest: A browser-based game for learning Mojo syntax

https://quest.mojolang.org/
1•mdunnoconnor•2m ago•0 comments

Too many tables are bad for you

https://www.cybertec-postgresql.com/en/too-many-tables-are-bad/
1•0x54MUR41•3m ago•0 comments

Fata Morgana (Mirage)

https://en.wikipedia.org/wiki/Fata_Morgana_(mirage)
1•keiferski•3m ago•0 comments

Rendering ray tracing in a database (ClickHouse)

https://github.com/ClickHouse/RayTracer
1•sdairs•3m ago•0 comments

Out of the loop

https://saturnino.substack.com/p/out-of-the-loop
1•pramodbiligiri•3m ago•0 comments

The Grammar of Data: Define Once, Run Anywhere with Cross-Engine Expressions

https://xorq.dev/blog/grammar-for-data-engineering/
1•zazuke•3m ago•0 comments

Show HN: Debategle – ranked 1v1 debates judged by an LLM

https://debategle.com/
1•sawsymikey•4m ago•0 comments

Haversine: Turtle Graphics (Logo) on a Sphere

https://web.archive.org/web/20221203103436/https://mewo2.com/haversine/
1•srean•4m ago•1 comments

AI Compass: which archetype are you?

https://bambamramfan.github.io/ai-compass/
1•meander_water•6m ago•0 comments

KIDS Act to let govt control online speech

https://expression.fire.org/p/the-kids-act-would-put-washington
1•Volodzko•6m ago•1 comments

Transcribe.cpp – ggml based transcription engine

https://workshop.cjpais.com/projects/transcribe-cpp
1•sipjca•6m ago•0 comments

Waiting for SQL:202y: Stockholm (BMA) Meeting Report

http://peter.eisentraut.org/blog/2026/06/30/waiting-for-sql-202y-stockholm-meeting-report
1•chmaynard•7m ago•0 comments

Thieves Can Drain Funds from a Locked iPhone

https://www.forbes.com/sites/davidphelan/2026/04/19/thieves-can-drain-funds-from-a-locked-iphone-...
1•gslin•8m ago•0 comments

VPNs in the UK Are About to Become Pointless [video]

https://www.youtube.com/watch?v=7KbtpDrKMbM
1•robtherobber•9m ago•0 comments

Show HN: Tesserae, self-hosted dashboards for the e-paper panel you own

https://tesserae.ink/
1•xDaftTurtle•11m ago•0 comments

'Swiss Elon Musk' jailed for fraud

https://www.swissinfo.ch/eng/space-research/swiss-elon-musk-jaussi-sentenced-to-five-and-a-half-y...
2•sschueller•11m ago•1 comments

Show HN: Habit Pocket – track numbers and times of day, not just checkmarks

https://habitpocket.io/
1•bohdanstefaniuk•11m ago•0 comments

OED Text Visualizer

https://oed-text-visualizer.oxfordlanguages.com/
2•loughnane•11m ago•0 comments

New Business Formation Is Surging–Again

https://marginalrevolution.com/marginalrevolution/2026/06/more-firms-more-dynamism.html
1•surprisetalk•12m ago•0 comments

3DO's New Owner working to Return to the Hardware Arena

https://www.timeextension.com/news/2026/06/3dos-new-owner-working-carefully-through-complexities-...
1•markus_zhang•12m ago•0 comments

Show HN: CiteReady – check if your site can be cited by AI search engines

https://citeready.sprytools.com/
1•grenzfrei•13m ago•0 comments

Show HN: TOTP generator – SHA1/256/512 30/60/... 6-9 not via SubtleCrypto

https://h1yapp.com/en/scripting/pwa/totpgenerator/
1•h1yapp•13m ago•0 comments

SocialPlod vs. SocialPilot: Why Google Thinks SocialPlod Is a Typo

https://socialplod.com/blog/socialplod-vs-socialpilot-why-google-thinks-socialplod-is-a-typo
2•dexterwura•14m ago•0 comments

Show HN: CmdBox – A CLI tool for saving and running parameterized commands

https://github.com/PhantomLambSoft/CmdBox
1•MalloyDelacroix•14m ago•0 comments

How much better is Strix 1.0? Results from a small rerun

https://theaq.blog/2026/04/28/how-much-better-is-strix-1-0-results-from-a-small-rerun.html
1•TheArtificialQ•14m ago•0 comments

EDDI – sovereign AI orchestrator, now OpenSSF Gold and a UN (UNIDO) partner

https://eddi.labs.ai/
1•ginccc•17m ago•0 comments