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.

Forerunners to the Automobile

https://group.mercedes-benz.com/company/tradition/company-history/forerunners-to-the-automobile.html
1•num42•3m ago•0 comments

Non-human cyber warfare is here

https://evanverma.com/non-human-cyber-warfare-is-here
1•edverma2•3m ago•0 comments

Timeline of Historic Inventions

https://en.wikipedia.org/wiki/Timeline_of_historic_inventions
1•num42•4m ago•0 comments

Local, Open source AI meeting recorder that sees and hears everything

1•puremetrics•5m ago•0 comments

Spokane wildfires force thousands to evacuate, blazes 0% contained [video]

https://www.youtube.com/watch?v=EYhNWOWWM9c
1•Bender•6m ago•0 comments

Show HN: Zizq is a fast, single-binary job queue that fits into any stack

https://zizq.io
1•d11wtq•7m ago•0 comments

Need feedback: My first SaaS as a solo-founder to help brands boost visibility

https://prominara.com
1•nseara•12m ago•1 comments

Run MiniMax-H3 Locally with SGLang Diffusion on 2× RTX 5090s or 1× RTX Pro 6000

https://twitter.com/lmsysorg/status/2084110114022396018
1•yvbbrjdr•13m ago•0 comments

Ranking weird pizza cutters [video]

https://www.youtube.com/watch?v=UN-RWs3QQTY
1•ninju•25m ago•1 comments

Situational Awareness got the future right but misread the past

https://www.ft.com/content/20af5836-51b0-4a37-a820-9de1583a18b4
1•sbulaev•28m ago•0 comments

Google Just Ruined One of Its Most Important Tools

https://www.theatlantic.com/technology/2026/07/google-earth-ai-images/688145/
1•sbulaev•28m ago•0 comments

Demographic Profiles

https://visquill.com/gallery/world-demographics/
1•gmays•28m ago•0 comments

AI migrated legacy COBOL programs to Java, bugs included

https://arxiv.org/abs/2607.28271
1•felineflock•29m ago•0 comments

Trump offering early access to online posts

https://www.theguardian.com/us-news/2026/aug/01/trump-truth-social-early-access
1•hrldcpr•30m ago•0 comments

World-renowned mountaineer Nirmal Purja confirmed dead after Pakistan avalanche

https://www.cnn.com/2026/08/01/asia/climber-nirmal-purja-killed-avalanche-pakistan-intl
1•ashu1461•31m ago•1 comments

I'm (mostly) picking models on speed now, not intelligence

https://martinalderson.com/posts/speed-vs-intelligence/
2•vinhnx•32m ago•0 comments

Show HN: AI Visibility: Check whether ChatGPT/Claude/Gemini recommend your brand

https://aivisibility.pro/
1•Baliy•32m ago•0 comments

Demystifying Deep Learning Compiler Front End Bugs: An LLM-Aided Empirical Study

https://arxiv.org/abs/2607.25651
1•matt_d•33m ago•0 comments

Apple engineer says he was fired after refusing to send cust. device IDs to AT&T

https://runtimewire.com/article/exclusive-apple-engineer-says-he-was-fired-after-refusing-to-send...
61•ryanmerket•34m ago•11 comments

South Korea records its highest

https://www.theguardian.com/world/2026/aug/03/south-korea-highest-temperature
2•tosh•36m ago•0 comments

Alexander Graham Bell's Tetrahedral Kites (1903–9)

https://publicdomainreview.org/collection/alexander-graham-bell-s-tetrahedral-kites-1903-9/
2•tzury•37m ago•0 comments

Ask HN: What Is Stripe Today?

1•Taikhoom2010•39m ago•0 comments

Show HN: AI Face Analyzer

https://lookblueprint.com
1•nuco•40m ago•0 comments

Be the best in the world, for a few real people

https://herbertlui.net/be-the-best-in-the-world-for-a-few-real-people/
1•herbertl•50m ago•0 comments

Don't Pave the Cow Path

https://alearningaday.blog/2026/08/02/dont-pave-the-cow-path/
1•herbertl•52m ago•0 comments

Aquila Voice Assistant Test Suite for Home Assistant

1•aquila416•53m ago•0 comments

The Shooter Didn't Expect This [video]

https://www.youtube.com/watch?v=XXXKnUnc8Sg
1•Bender•55m ago•0 comments

First open-source firmware for AM5 officially launches

https://www.tomshardware.com/pc-components/motherboards/first-open-source-firmware-for-am5-offici...
1•peter_d_sherman•57m ago•0 comments

Print Your Speakers

https://printyourspeakers.com
1•michael_michael•58m ago•0 comments

Qwen 3.8-Max and Qwen3.8-27B are going open weight

https://twitter.com/Alibaba_Qwen/status/2084100707423289643
3•ahmadawais•1h ago•3 comments