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!

Small context menu encryption tool

https://github.com/jvsteiner/fingerlock
1•javast98•1m ago•0 comments

Feedboard – An open-source feedback, roadmap, and changelog

https://feedboard.io/
1•chiragasarpota•2m ago•0 comments

Action Potentials for July

https://neurobiology.substack.com/p/action-potentials-for-july-505
1•paulpauper•3m ago•0 comments

My Dog Is The Best – A dog journal

https://mydogisthebest.org/
2•rrr_oh_man•4m ago•0 comments

Codeberg Disallows Cryptocurrency Projects

https://codeberg.org/Codeberg/org/commit/f383b648fd733ab88083dc390b91e77cd7589980
2•cdrnsf•5m ago•0 comments

GrapheneOS duress PIN could land a man in prison

https://www.androidauthority.com/grapheneos-duress-pin-us-prosecution-3691271/
3•samtheprogram•5m ago•0 comments

India's 'cockroach' movement halts protests after minister quits

https://www.ft.com/content/5f267b7d-9e57-40f6-9bb5-6fe5d6cf9d1d
1•JumpCrisscross•6m ago•0 comments

The Bliss of Graphene

https://srikanthperinkulam.com/2026/07/20/the-bliss-of-graphene
1•speckx•8m ago•0 comments

Magic codec – preprocessing for the Python interpreter (2024)

https://github.com/Tsche/magic_codec
1•zbentley•9m ago•0 comments

Bloomberg published an article based on false information sent from a fake email

https://twitter.com/yatharthmann/status/2081016902890168741
3•porridgeraisin•9m ago•0 comments

How to Recalculate a Spreadsheet

https://lord.io/spreadsheets/
1•thunderbong•10m ago•0 comments

Steps to Secure Your Authentication System

https://fusionauth.io/articles/security/steps-secure-your-authentication-system
2•mooreds•12m ago•0 comments

Emacs Dedicate Windows with toggle-window-dedicated

https://emacsredux.com/blog/2026/07/22/dedicate-windows-with-toggle-window-dedicated/
1•speckx•13m ago•0 comments

The pickle season runs on five business mechanisms

https://www.tsoon.com/posts/pickle-season/
1•mooreds•13m ago•0 comments

Handoff, a memory-only replicated KV on an eviction-prone substrate

https://tlc.proc.io/hub/623f9b12-a08b-4b6d-850a-29d58934eb61/Handoff
1•polvi•13m ago•0 comments

Kain – A non-von Neumann language (Zero GC, Python syntax, no borrow checker)

https://github.com/kainlang/kain
1•ephemara•13m ago•1 comments

Three out of four job postings won't tell you the pay

https://jobweb.io/blog/job-postings-hide-pay/
1•mooreds•14m ago•1 comments

All things are systems – the Idlewild Acres case

https://www.roderick.dev/writing/2026-07-25-systems-axioms-impacts/
1•tomrod•15m ago•0 comments

How will the decline in need for technical skills will affect internet cultures?

1•wuther•17m ago•1 comments

A system prompt to get AI to stop pretending to be human

https://swiftrocks.com/a-system-prompt-to-get-ai-to-stop-pretending-to-be-human
5•speckx•24m ago•3 comments

Silicon Valley Is Completely Divided over Chinese AI

https://www.wired.com/story/silicon-valley-is-completely-divided-over-chinese-ai/
2•joozio•25m ago•2 comments

I've been living inside DynamoDB for a while

https://www.thetrueengineer.com/p/dynamodb-deep-dive
1•adletbalzhanov•25m ago•0 comments

The Delphi Method: Expert Consensus Research Explained

https://www.koji.so/docs/delphi-method-guide
1•ankitg12•26m ago•0 comments

Show HN: Tongue – Text Your AI Personal Assistant

https://trytongue.com/demo
1•chadnewbry•26m ago•1 comments

Ask HN: What livestream do you keep open in a tab?

4•missmoss•26m ago•1 comments

Show HN: Protoai – an open source peer-to-peer network for sharing AI contexts

https://github.com/johndebord/protoai
2•piecesJohn•29m ago•1 comments

NASA-ISRO's NISAR satellite images a "hummingbird" in Antarctic ice

https://www.jpl.nasa.gov/news/us-india-satellite-delivers-data-reveals-hummingbird-in-antarctica/
1•MarcoDewey•29m ago•0 comments

The one name LLMs fear

https://ramblingafter.substack.com/p/the-one-name-llms-fear
3•paulpauper•29m ago•0 comments

Epistemics

https://ussri.substack.com/p/epistemics
1•paulpauper•29m ago•0 comments

Apple Is the King of AI and Nobody Knows It

https://limitededitionjonathan.substack.com/p/apple-is-the-king-of-ai-and-nobody
7•cyanbane•30m ago•8 comments