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!

ChatGPT starts blocking direct requests to copy an author's style

https://arstechnica.com/ai/2026/07/chatgpt-stops-cloning-famous-writers-voices-but-may-capture-a-...
1•Eloissssss•2m ago•0 comments

Six Little Lines of Fail [video]

https://www.youtube.com/watch?v=VvUdvte1V3s
1•ruckfool•2m ago•0 comments

Waits: Arthur Samuel's Checkers

https://timereshared.com/waits-samuel-checkers/
1•abrax3141•3m ago•0 comments

Interview with Amit Patel (Red Blob Games) on Making Things

https://digitalseams.com/blog/amit-patel-on-making-things
1•bobbiechen•6m ago•0 comments

The phone book that led us to Assad's spy chief in hiding

https://www.bbc.com/news/articles/c4gyrzn8p94o
1•cwwc•7m ago•0 comments

Model Genome: Fingerprinting Whether an LLM Was Trained from Scratch or Derived

https://huggingface.co/blog/mayafree/model-dna
1•prof_ai_cn•9m ago•0 comments

Opus 4.6 Was the Last Coding Model That Changed How I Work

https://awaitinginput.substack.com/p/opus-46-was-the-last-coding-model
1•bsovran•11m ago•0 comments

A weapon that could help red squirrels in their Battle of Britain

https://www.economist.com/britain/2026/01/10/a-weapon-that-could-help-red-squirrels-in-their-batt...
1•geneticdrifts•12m ago•0 comments

"Coding is solved" misses the point

https://blog.mastykarz.nl/coding-is-solved-misses-the-point/
2•listless•13m ago•0 comments

Incentives Are for Losers

https://www.experimental-history.com/p/incentives-are-for-losers
2•bkudria•13m ago•0 comments

Ask HN: What is your database size

1•kureikain•18m ago•0 comments

The State of Google

1•3dedb728-3f77•18m ago•1 comments

I built a video editor in Rust with extensive AI-powered features

https://github.com/heng30/wayshot
1•heng30•20m ago•0 comments

Aftermath of Catastrophic Fires in Spokane

https://www.kuow.org/climate/2026-08-07/its-apocalyptic-a-look-at-the-aftermath-of-catastrophic-f...
1•andsoitis•21m ago•0 comments

Archive of Animal Photography Reveals 18,000 Species and Counting

https://www.smithsonianmag.com/science-nature/this-amazing-archive-of-animal-photography-reveals-...
1•pseudolus•22m ago•0 comments

A viral mosquito-killing laser device could be coming to the U.S.

https://www.npr.org/2026/06/07/nx-s1-5839969/a-viral-mosquito-killing-laser-device-could-be-comin...
1•toomuchtodo•28m ago•1 comments

The AI Apocalypse Is Here

https://www.compactmag.com/article/the-ai-apocalypse-is-already-here/
11•reasonableklout•35m ago•2 comments

Show HN: Aidress – LangChain integration for cross-agent discovery and trust

https://docs.langchain.com/oss/python/integrations/tools
1•mehulv24•36m ago•0 comments

Flesh-eating screwworms feast on humans in Mexico; human cases top 500

https://arstechnica.com/health/2026/08/flesh-eating-screwworms-feast-on-humans-in-mexico-human-ca...
3•Eloissssss•38m ago•0 comments

TheoremDB · A public workspace for machine mathematics

https://theoremdb.org/
2•frozenseven•40m ago•0 comments

Amphorae Found at 2,100-Year-Old Roman Shipwreck Off Sicily

https://ancientist.com/hundreds-of-dressel-1a-amphorae-found-at-2100-year-old-roman-shipwreck-off...
1•inatreecrown2•45m ago•0 comments

What it was like working on LLMs and security at Meta (2022-2026)

https://joshuasaxe181906.substack.com/p/what-it-was-like-working-on-llms
2•botanicalfriend•47m ago•0 comments

SSI says that they are going to come out with their model in August

https://twitter.com/zephyr_z9/status/2084637598581207117
2•nsoonhui•58m ago•0 comments

What makes companies dodge taxes?

https://news.mccombs.utexas.edu/research/what-makes-companies-dodge-taxes/
1•hhs•59m ago•0 comments

Ready set march: Researchers use math to explain sudden activity bursts in ants

https://engineering.nyu.edu/news/ready-set-march-researchers-use-math-explain-sudden-activity-bur...
1•hhs•1h ago•0 comments

Melatonin impairs morning cognition in healthy young adults

https://academic.oup.com/sleep/article/46/Supplement_1/A34/7181621
3•bohaska•1h ago•0 comments

Every mosquito has a type – and you may not be it

https://news.fiu.edu/2026/every-mosquito-has-a-type-and-you-may-not-be-it
2•hhs•1h ago•0 comments

A Man Who Invented Modern AI (Before Everyone Else) – Jürgen Schmidhuber [video]

https://www.youtube.com/watch?v=DP454c1K_vQ
2•binyu•1h ago•0 comments

China overtakes US to lead global R&D spending, hitting $615B

https://asia.nikkei.com/business/science/china-overtakes-us-to-lead-global-r-d-spending-hitting-6...
8•yogthos•1h ago•0 comments

Why is gaming giant Roblox losing billions in market value?

https://www.cbc.ca/news/entertainment/roblox-gaming-falling-9.7299607
3•nianderwallace•1h ago•0 comments