frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: AgentShield SDK – Runtime security for agentic AI applications

https://pypi.org/project/agentshield-sdk/
2•iamsanjayk•1y ago
Hi HN,

We built AgentShield, a Python SDK and CLI to add a security checkpoint for AI agents before they perform potentially risky actions like external API calls or executing generated code.

Problem: Agents calling arbitrary URLs or running unchecked code can lead to data leaks, SSRF, system damage, etc.

Solution: AgentShield intercepts these actions:

- guarded_get(url=...): Checks URL against policies (block internal IPs, HTTP, etc.) before making the request.

- safe_execute(code_snippet=...): Checks code for risky patterns (os import, eval, file access, etc.) before execution.

It works via a simple API call to evaluate the action against configurable security policies. It includes default policies for common risks.

Get Started:

Install: pip install agentshield-sdk

Get API Key (CLI): agentshield keys create

Use in Python: from agentshield_sdk import AgentShield # shield = AgentShield(api_key=...) # await shield.guarded_get(url=...) # await shield.safe_execute(code_snippet=...)

Full details, documentation, and the complete README are at <https://pypi.org/project/agentshield-sdk/>

We built this because securing agent interactions felt crucial as they become more capable. It's still early days, and we'd love to get your feedback on the approach, usability, and policies.

Comments

subhampramanik•1y ago
Looks interesting -- Does it work like a wrapper on top of OpenAI specs? Like, can we just replace the OpenAI package with this, and it's fully integrated?
iamsanjayk•1y ago
Hey, thanks for asking! Good question.

AgentShield isn't a wrapper around the OpenAI package, so you wouldn't replace openai with it. Think of AgentShield as a separate safety check you call just before your agent actually tries to run a specific risky action.

So, you'd still use the openai library as normal to get your response (like a URL to call or code to run). Then, before you actually use httpx/requests to call that URL, or exec() to run the code, you'd quickly check it with shield.guarded_get(the_url) or shield.safe_execute(the_code).

Currently, It focuses on securing the action itself (the URL, the code snippet) rather than wrapping the LLM call that generated it.

Harvesting rainwater from rooftops could cut the number of heatwave days

https://www.euronews.com/2026/08/09/harvesting-rainwater-from-rooftops-could-cut-the-number-of-he...
3•devonnull•1m ago•0 comments

Show HN: Remaking Unreal engine in Rust for coding agents

https://machinesatplay.com
1•kevo1ution•2m ago•0 comments

The OpenAI and Hugging Face incident, explained in simple terms

https://ashu1461.com/posts/openai-hugging-face-incident-in-simple-terms/
2•ashu1461•6m ago•0 comments

A permanent freezing in of wealth is just one of many possible ASI scenarios

https://www.milanmecklenburg.com/p/a-permanent-freezing-in-of-wealth
2•milanmeck•8m ago•0 comments

Nuclear Reactor//Martin Gendell [video]

https://www.youtube.com/watch?v=gwRWRDrfrvA
1•audreyfei•8m ago•0 comments

Ransomware gangs skip the CEO, head straight for the 40-something IT manager

https://www.theregister.com/security/2026/08/09/ransomware-gangs-skip-the-ceo-head-straight-for-t...
4•joebuckwilliams•10m ago•0 comments

A brief introduction to e-beam lithography [video]

https://www.youtube.com/watch?v=yJF9s2MJLLM
1•binyu•10m ago•0 comments

Show HN: Kamod UI – open-code components built natively for Preact

https://kamod-ch.github.io/kamod-ui/
1•zahir777•13m ago•0 comments

LLM Scaler – LLM Support for Intel's Arc Pro B60 and B70 GPUs

https://github.com/intel/llm-scaler
3•peter_d_sherman•14m ago•1 comments

I use LLMs to learn complex topics

https://laurentiugabriel.github.io/blog/articles/how-i-use-llms-to-learn/
12•laurentiurad•14m ago•4 comments

Ask HN: Are functional programmers more upset about how good AI is at coding?

2•amichail•16m ago•4 comments

Why is Wispr Flow a $2B company?

https://wisprflow.ai
1•strax01•17m ago•1 comments

How do you manage multiple agents?

https://skribbl.dev
1•JawadJalal•20m ago•1 comments

Sigrid helped break a physics barrier that made 3D ultrasound in air possible [video]

https://www.youtube.com/watch?v=pVpznf7gCxs
1•torotime•21m ago•0 comments

Noctua finds more than half of PC cases misstate CPU cooler clearances

https://www.tomshardware.com/pc-components/pc-cases/noctua-finds-more-than-half-of-tested-pc-case...
2•sbulaev•24m ago•0 comments

NYC Tenants Sue over Spying Operation in Public Housing

https://prospect.org/2026/08/07/nyc-tenants-sue-over-spying-operation-in-public-housing/
3•hn_acker•30m ago•0 comments

A zero-dependency, ultra-lightweight database time machine for SQLite

https://github.com/nsrht/time-travel-sqlite-debugger
7•thunderbong•31m ago•1 comments

I got an email about resistance

https://www.seangoedecke.com/i-got-an-email-about-resistance/
5•danielhaven•34m ago•3 comments

The Applicants (A Short Story)

https://skaersoe.com/the-applicants/
1•lokimedes•37m ago•0 comments

What's new in Swift: July 2026 Edition

https://www.swift.org/blog/whats-new-in-swift-july-2026/
2•maguszin•37m ago•0 comments

Trump administration warns against using federal dollars on fentanyl test strips

https://www.statnews.com/2026/04/27/trump-administration-samhsa-clear-shift-from-harm-reduction/
2•hn_acker•38m ago•1 comments

Plug-In Solar Panels Starting to Sprout in U.S. Backyards

https://www.nytimes.com/2026/07/31/business/energy-environment/plug-in-balcony-solar.html
13•bookofjoe•39m ago•7 comments

Saying No

https://rozumem.xyz/posts/19
26•rozumem•40m ago•13 comments

Open source emojis for designers, developers and everyone else

https://openmoji.org
1•kannanpoem1984•42m ago•0 comments

Show HN: VerusCite, a tool to check for hallucinations in academic articles

https://veruscite-data.com/login?next=%2Fdashboard
1•apwheele•45m ago•0 comments

Reuniting important documents in English theatre history first time in 200 years

https://theconversation.com/how-i-reunited-the-most-important-documents-in-english-theatre-histor...
1•bryanrasmussen•47m ago•1 comments

If experience is the goal, then you always win

https://www.startingfromnix.com/p/if-experience-is-the-goal-then-you
11•jger15•49m ago•0 comments

I Made Tinnitus My Friend (Then It Disappeared)

https://mynoise.net/vlog.php?ep=20260803
2•gregsadetsky•49m ago•0 comments

Anti-AI Populism Is Reshaping American Politics

https://www.motherjones.com/politics/2026/08/anti-ai-populism-is-reshaping-american-politics/
3•cdrnsf•49m ago•0 comments

Microsoft confirms it accidentally installed new OneDrive app on Windows 11 PCs

https://www.windowslatest.com/2026/08/09/microsoft-confirms-it-accidentally-installed-new-onedriv...
3•binsquare•50m ago•1 comments