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!

Learning to code is still worthwhile

https://stevekrouse.com/learn-to-code
1•stevekrouse•58s ago•0 comments

Knowledge factories and the industrialisation of knowledge work

https://www.sontoresearch.ai/blog/knowledge-factories-and-the-industrialisation-of-knowledge-work
1•jah242•1m ago•1 comments

Agentic BI Team: Orchestrate a BI Team from CLI

https://github.com/link7373/agentic-bi-team
1•link7373•1m ago•0 comments

Show HN: LangChain's OpenWiki agent based on PI.dev harness

https://github.com/barvhaim/pi-openwiki
1•bignet•4m ago•0 comments

Stanford Scientists Reverse Age-Related Memory Loss by Targeting the Gut

https://scitechdaily.com/stanford-scientists-reverse-age-related-memory-loss-by-targeting-the-gut/
1•amichail•5m ago•0 comments

AMD's Ryzen AI Halo makes local AI look easy, but it doesn't come cheap

https://www.theregister.com/ai-and-ml/2026/07/06/amds-ryzen-ai-halo-makes-local-ai-look-easy-but-...
1•geekinchief•7m ago•1 comments

Protecting Exploration in an Efficient System

1•rando77•8m ago•0 comments

German prosecutors allege Ukraine ordered Nord Stream pipeline attack

https://www.aljazeera.com/news/2026/7/2/german-prosecutors-allege-ukraine-ordered-nord-stream-pip...
2•khurs•9m ago•0 comments

Data centers make nearby neighborhoods hotter

https://coloradosun.com/2026/07/03/data-centers-make-nearby-neighborhoods-hotter/
2•gnabgib•10m ago•0 comments

2005 gamedev community, frozen in time

https://flipcode.com/
1•kbruner•12m ago•1 comments

Amazon Basics, but for Intellectual Property

https://idiallo.com/blog/amazon-basics-but-intellectual-property
1•firefoxd•13m ago•0 comments

EO 14412: Official Post-Quantum Transition Deadlines

https://www.appviewx.com/blogs/executive-order-14412-post-quantum-imperative-for-machine-identity/
1•mooreds•13m ago•0 comments

Show HN: Dike is a compliance gateway for AI products in the EU

https://d1k3.com
1•orbanlevi•14m ago•0 comments

The Carney government's expanding power to identify Canadians online

https://thehub.ca/2026/07/06/the-carney-governments-expanding-power-to-identify-canadians-online-...
2•Teever•14m ago•0 comments

Show HN: DemandMap – Memory Mapping S3 into Polars on macOS Without FUSE

https://github.com/sonthonaxrk/demandmap
1•sonthonax•20m ago•0 comments

Common prefix skipping adaptive sort

http://smalldatum.blogspot.com/2026/01/common-prefix-skipping-adaptive-sort.html
1•theanonymousone•20m ago•0 comments

Open Hands has a pretty Repo Visualization

https://www.reddit.com/r/PrincipalAi/s/eRRiNWjCft
1•fernando-ram•21m ago•0 comments

Bulletproof Hosting

https://en.wikipedia.org/wiki/Bulletproof_hosting
2•mmarian•22m ago•0 comments

Show HN: A little cat that counts your tokens (Claude and codex)

https://jpthecat.com
1•saddington•25m ago•0 comments

Spain's Solar Is So Cheap Investors Are Looking for an Exit

https://www.bloomberg.com/news/newsletters/2026-06-30/spain-s-solar-is-so-cheap-investors-are-loo...
4•mooreds•25m ago•1 comments

Ask HN: What browser extensions or front ends do you use for reading HN, if any?

4•GaryBluto•26m ago•3 comments

Show HN: DNSskills.md – agentic skills for certain DNS utilities

https://dnsskills.md
1•StuntPope•26m ago•1 comments

The Yoto Music Box Is a Ray of Hope Amid the 'Techlash'

https://www.nytimes.com/2026/07/01/technology/personaltech/yoto-music-box-screens.html
1•reaperducer•26m ago•0 comments

Ekka: Automated Diagnosis of Silent Errors in LLM Inference

https://syfi.cs.washington.edu/blog/2026-06-29-ekka/
2•matt_d•28m ago•0 comments

You Don't Know Jack About Formal Verification

https://queue.acm.org/detail.cfm
3•aravindputrevu•28m ago•1 comments

I'm playing around with SEO / AEO / GEO

https://www.youdidwhatwithai.com/
2•thewebuiguy•30m ago•0 comments

"What is the terminal?" – Jon Udell

https://blog.jonudell.net/2026/07/01/what-is-the-terminal/
2•rbanffy•31m ago•0 comments

A Mind, a Body, and a Place to Work

https://twitter.com/maurya_ian/status/2074010518650864073
2•mauryaudayan•31m ago•0 comments

Guest Post: Atari Origins – By Mark Miller

https://www.goto10retro.com/p/guest-post-atari-origins
2•rbanffy•31m ago•0 comments

Alice Sebold, the wrong man, and Syracuse's buried rape crisis

https://www.propublica.org/article/alice-sebold-anthony-broadwater-rape-exoneration-syracuse
3•Jimmc414•31m ago•0 comments