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!

Ask HN: Who here has gotten a job offer from 'Ask HN: Who wants to be hired?'

1•fur-tea-laser•1m ago•0 comments

Qdf – a Go serializer you query the raw bytes of, smaller than protobuf

https://github.com/alex60217101990/qdf
1•alex602•1m ago•0 comments

The System as a Program: fusing the database and the programming language

https://www.cambra.dev/blog/the-system-as-a-program/
1•sortalongo•4m ago•1 comments

Tarski's influence on computer science [pdf]

https://math.stanford.edu/~feferman/papers/tarskiandcs.pdf
1•remywang•4m ago•0 comments

Optimizing an Algorithm That's Quadratic by Design

https://whatchord.earthmanmuons.com/articles/chord-ranking-performance.html
1•elasticdog•5m ago•0 comments

Anthropic is removing its covert code for catching Chinese competitors

https://www.theregister.com/ai-and-ml/2026/07/01/anthropic-is-removing-its-covert-code-for-catchi...
1•johnbarron•6m ago•0 comments

Understanding List Virtualization

https://jlopes.eu/blog/understanding-virtualization/
2•offeringofpie•7m ago•0 comments

The Mythos report for curl 2026-05-06 made public

https://gist.github.com/bagder/c9b83a19f30e82e41b11f6315465b17a
1•_____k•7m ago•0 comments

Good APIs Age Slowly

https://yusufaytas.com/good-apis-age-slowly
2•birdculture•7m ago•0 comments

What Is CSS Containment and How Can I Use It?

https://csswizardry.com/2026/04/what-is-css-containment-and-how-can-i-use-it/
1•eustoria•8m ago•0 comments

PCs Explorer – Know your worth

https://strivetobeearthsbestemployer.com
1•johnbarron•8m ago•0 comments

Every New JavaScript Feature Worth Knowing

https://blog.webdevsimplified.com/2026-06/new-javascript-features-es2026/
1•eustoria•9m ago•0 comments

How to Switch LLM Providers Without Downtime

https://konghq.com/blog/enterprise/how-to-switch-llm-providers-without-downtime
1•axandriamier•9m ago•0 comments

A Judicial Wake-Up Call on Government by AI

https://www.techpolicy.press/a-judicial-wakeup-call-on-government-by-ai/
2•cdrnsf•9m ago•0 comments

Can You Embrace A.I. Without Layoffs? This Company Says It's Trying

https://www.nytimes.com/2026/07/02/world/europe/germany-sap-ai-jobs-skilled-workers.html
2•xbryanx•10m ago•0 comments

AppControl – Advanced Task Manager with History

https://www.appcontrol.com/
1•eustoria•12m ago•0 comments

Show HN: Point0 – a fullstack TypeScript framework on Bun and React

https://github.com/1gr14/point0
1•1gr14•13m ago•0 comments

TallyHouse – Local-first net worth tracker, no cloud or bank linking

https://tallyhouseapp.com/
1•dcohanoff•13m ago•0 comments

H.R.7757 – KIDS Act

https://www.congress.gov/bill/119th-congress/house-bill/7757
4•undersuit•13m ago•1 comments

Modern JavaScript: Everything you missed over the last 10 years (2020)

https://turriate.com/articles/modern-javascript-everything-you-missed-over-10-years
2•downbad_•14m ago•0 comments

Crypto Brought Trump a Windfall, Even as Many Investors Lost Big

https://www.nytimes.com/2026/07/01/us/politics/trump-crypto-memecoin-world-liberty.html
3•NordStreamYacht•14m ago•0 comments

Alex Karp: Frontier Models Are Not Delivering Outcomes [video]

https://www.youtube.com/watch?v=0A3sGymV6kY
5•dzonga•14m ago•1 comments

van Embde Boas tree

https://en.wikipedia.org/wiki/Van_Emde_Boas_tree
1•azhenley•15m ago•0 comments

We Scale PgBouncer in ClickHouse Managed Postgres

https://clickhouse.com/blog/pgbouncer-clickhouse-managed-postgres
1•cauchyk•15m ago•0 comments

Govt Bracing for Nationwide Anti-AI Riots, Preparing to Crack Down on Dissent

https://www.mintpressnews.com/dhs-docs-govt-bracing-for-nationwide-anti-ai-riots-preparing-to-cra...
2•robtherobber•16m ago•0 comments

The prompt is not the work; describing AI contributions

https://sgnt.ai/p/prompt-is-not-the-work/
1•petesergeant•16m ago•0 comments

Show HN: My first SaaS to help human developers and AI agents share context

5•iamalizaidi•17m ago•1 comments

Connect Your AI Agent to HubSpot (Create Contacts, Deals and Tickets)

https://quickchat.ai/post/connect-ai-agent-to-hubspot
2•piotrgrudzien•18m ago•0 comments

MOQ5 – Open-Source C Library with MOQ Support for Both Ingest and Egress

https://github.com/openmoq/moq5
1•mondainx•18m ago•0 comments

Podman v6.0.0

https://blog.podman.io/2026/07/introducing-podman-v6-0-0/
3•soheilpro•18m ago•0 comments