frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

DeepTeam: Penetration Testing for LLMs

2•jeffreyip•18h ago
Hi HN, we’re Jeffrey and Kritin, and we’re building DeepTeam (https://github.com/confident-ai/deepteam), 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-first-llm-vulnerability

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!

"Raindrops in the Sun's Corona": Adaptive Optics Shows Details of Sun Atmosphere

https://nso.edu/press-release/new-adaptive-optics-shows-stunning-details-of-our-stars-atmosphere/
1•perihelions•2m ago•0 comments

Microsoft designates Blazor as main future investment in Web UI for .NET

https://devclass.com/2025/05/29/microsoft-designates-blazor-as-its-main-future-investment-in-web-ui-for-net/
2•cempaka•4m ago•0 comments

The VC industry needs a geopolitical reboot

https://www.ft.com/content/22611ea8-56c0-4dfd-b10c-db795bb47281
1•perihelions•5m ago•1 comments

Chaos on German autobahns as Google Maps wrongly says they are closed

https://www.theguardian.com/world/2025/may/30/chaos-on-german-autobahns-as-google-maps-wrongly-says-they-are-closed
1•adoyle•6m ago•0 comments

Perplexity Labs

https://www.perplexity.ai/hub/blog/introducing-perplexity-labs
1•ashutosh-mishra•7m ago•0 comments

An n8n node that provides a in-memory key-value store for your workflows

https://github.com/korotovsky/n8n-nodes-datastore
1•korotovskii•8m ago•0 comments

Show HN: ServBay – Create Perfect macOS Development Environment with One Click

https://www.servbay.com
2•Hayatoo•11m ago•0 comments

A new fullstack Gen AI platform was born and it's crazy good

https://www.dave-bot.com/
2•laurentiurad•11m ago•2 comments

Announcing Think Linear Algebra

https://www.allendowney.com/blog/2025/05/28/announcing-think-linear-algebra/
1•jamesliudotcc•13m ago•1 comments

China is quietly preparing to build a gigantic telescope

https://www.science.org/content/article/china-quietly-preparing-build-gigantic-telescope
2•xqcgrek2•15m ago•0 comments

Show HN: Built a Chrome extension to chat with your tabs – looking for feedback

https://supatab.app
1•naimur103•15m ago•0 comments

Show HN: Free AI Marketing Tools

https://founderpal.ai/free-tools
1•kronop•17m ago•0 comments

Air Pressure Car

https://makerworld.com/en/models/1304435-air-pressure-car-apm
1•bookofjoe•18m ago•0 comments

What I Learned Serving on My University's AI Committee

https://www.chronicle.com/article/what-i-learned-serving-on-my-universitys-ai-committee
1•Michelangelo11•19m ago•0 comments

UK's answer to DARPA invests £23.3M in touchy-feely robots

https://www.theregister.com/2025/05/30/uks_darpa_invests_233_million/
1•rntn•20m ago•0 comments

The natural world is inspiring the robot eyes of the future

https://www.nature.com/articles/d41586-025-01660-5
1•sohkamyung•21m ago•0 comments

What Hot Dragon-Riders and Fornicating Faeries Say About What Women Want Now

https://www.wsj.com/lifestyle/what-hot-dragon-riders-and-fornicating-faeries-say-about-what-women-want-now-23fc9e24
1•Michelangelo11•21m ago•1 comments

Why Take9 Won't Improve Cybersecurity

https://www.schneier.com/blog/archives/2025/05/why-take9-wont-improve-cybersecurity.html
2•MattSayar•21m ago•0 comments

U.S. foreign tax bill sends jitters across Wall Street

https://www.cnbc.com/2025/05/30/us-set-to-weaponize-taxes-on-foreign-investors-via-section-899.html
2•belter•22m ago•1 comments

MacInTouch

https://www.macintouch.com
2•tonyedgecombe•22m ago•1 comments

AI for Quantity Surveying: Enhancing Accuracy, Efficiency, and Cost Management

https://requestum.com/blog/ai-for-quantity-surveying
1•Katesmith•23m ago•1 comments

The Billionaire Odd Couple Whose Hedge Fund Is Killing It

https://www.wsj.com/finance/investing/the-billionaire-odd-couple-whose-hedge-fund-is-killing-it-ed48da3a
1•SirLJ•23m ago•0 comments

Automattic is going to contribute to WordPress Core again

https://automattic.com/2025/05/29/returning-to-core/
2•program•24m ago•0 comments

The Darwin Gödel Machine: AI that improves itself by rewriting its own code

https://sakana.ai/dgm/
2•birriel•25m ago•0 comments

Nix Package Manager Install on Alpine Linux

https://gist.github.com/danmack/b76ef257e0fd9dda906b4c860f94a591
1•peter_d_sherman•27m ago•1 comments

The Rise of AI Sports Coaching: Smarter Training for Better Results

https://requestum.com/blog/ai-sports-coaching
1•Katesmith•28m ago•1 comments

Evolutionary Mystery: Why Do Single-Celled Organisms Commit Self-Destruction?

https://wowparrot.com/why-do-single-celled-organisms-commit-suicide/
1•thunderbong•28m ago•0 comments

Breaking the Sorting Barrier for Directed Single-Source Shortest Paths

https://arxiv.org/abs/2504.17033
1•marvinborner•29m ago•0 comments

Akashteer: The Unseen Force Behind India's New War Capability

https://www.pib.gov.in/FeaturesDeatils.aspx?id=154475&NoteId=154475&ModuleId=2
1•sanroot99•31m ago•0 comments

AI in Structural Engineering:How Innovations Polish Approaches to Construction

https://requestum.com/blog/ai-in-structural-engineering
1•Katesmith•31m ago•1 comments