frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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.

Show HN: Nanorust – Minimal server-driven UI in Rust

https://github.com/skorotkiewicz/nanorust
1•modinfo•5m ago•0 comments

The Cursed Computer Iceberg Meme (2021)

https://suricrasia.online/iceberg/
1•medbar•6m ago•0 comments

Hard Drive Smart Stats and Failure Rates

https://www.backblaze.com/docs/cloud-storage-hard-drive-smart-stats-and-failure-rates
1•mmh0000•7m ago•0 comments

Cyberattack hits Canvas system used by schools as finals loom

https://www.politico.com/news/2026/05/08/cyberattack-hits-canvas-system-used-by-thousands-of-scho...
2•1vuio0pswjnm7•9m ago•0 comments

Apple, Intel Have Reached Preliminary Chip-Making Agreement

https://www.wsj.com/tech/apple-intel-have-reached-preliminary-chip-making-agreement-69eb9370
1•tosh•13m ago•0 comments

Canvas outage delays college finals across the country

https://www.axios.com/2026/05/08/canvas-cyberattack-outage-finals-colleges-universities
1•1vuio0pswjnm7•14m ago•0 comments

California tech company Cloudflare to lay off more than 1k workers, cites AI

https://www.latimes.com/business/story/2026-05-07/california-tech-company-cloudflare-to-lay-off-m...
1•1vuio0pswjnm7•17m ago•0 comments

What do figureheads on ships represent?

https://thedockyard.co.uk/news/what-do-figureheads-on-ships-represent/
1•thunderbong•22m ago•0 comments

What is Amazon Linux 2023?

https://docs.aws.amazon.com/linux/al2023/ug/what-is-amazon-linux.html
1•tosh•23m ago•0 comments

Programming as Theory Building [pdf]

https://pages.cs.wisc.edu/~remzi/Naur.pdf
1•nvader•30m ago•1 comments

Rough Week Thank God for Fridays

3•Eaglo•31m ago•1 comments

Show HN: Best Old School UFO Website

http://www.ufoevidence.org/
2•techteach00•43m ago•0 comments

Show HN: CopyProps – A Figma plugin that copies element properties as text

https://github.com/p32929/figma_copy_props
1•heliskyr2•45m ago•0 comments

GNUtrition 0.33.0rc1 Now Available

https://lists.gnu.org/archive/html/info-gnutrition/2026-05/msg00000.html
1•amcclure•48m ago•0 comments

The React2Shell Story and What Happened Next.js

https://sylvie.fyi/posts/react2shell/
1•thaunatos•54m ago•1 comments

ExitFlare

https://exitflare.com/
5•libroot•1h ago•0 comments

Learn Something Old Every Day, Part XXI: VGA Memory Access Is Complicated

https://www.os2museum.com/wp/learn-something-old-every-day-part-xxi-vga-memory-access-is-complica...
2•kencausey•1h ago•0 comments

Show HN: Ovlt – Lightweight Auth Server That Runs in ~20MB RAM

https://www.ovlt.tech/
2•Shrpp•1h ago•1 comments

How to Brush Your Teeth at Work

https://joshlf.com/posts/brush-your-teeth/
2•untrust•1h ago•0 comments

Over 97% of the 'Linux' Foundation's Budget Goes Not to Linux

https://techrights.org/n/2026/05/08/Over_97_of_the_Linux_Foundation_s_Budget_Goes_Not_to_Linux.shtml
25•esaym•1h ago•9 comments

Crab Memes Amplify Mistaken Ideas about Evolution

https://www.scientificamerican.com/article/crab-memes-amplify-mistaken-ideas-about-evolution/
1•Eridanus2•1h ago•1 comments

Show HN: TigerJSON – Native macOS JSON viewer with jq filter engine ($9.99)

https://apps.apple.com/kr/app/tiger-json/id6761610376?mt=12
1•oxchairman•1h ago•0 comments

Scott Sumner Q1 movie reviews

https://scottsumner.substack.com/p/films-of-2026-q1
1•paulpauper•1h ago•0 comments

Annualizing Retention Rates

https://www.arrguide.com/blog/annualizing-retention-rates
1•ericsd2024•1h ago•0 comments

The Gell-Mann Amnesia Trap

https://novehiclesinthepark.substack.com/p/the-gell-mann-amnesia-trap
3•axtro•1h ago•0 comments

Meltdown: LLM Client Made in Python and Tk

https://github.com/Merkoba/Meltdown
2•madprops•1h ago•0 comments

ShowHN: Applying PEFT (e.g., LoRA) for edge-cloud collaborative computing

https://github.com/ShadowLLM/shadow-peft
5•heyjude87•1h ago•0 comments

A recent experience with ChatGPT 5.5 Pro

https://gowers.wordpress.com/2026/05/08/a-recent-experience-with-chatgpt-5-5-pro/
3•_alternator_•1h ago•0 comments

Great Writers "Tell" All the Time

https://freddiedeboer.substack.com/p/great-writers-tell-all-the-time
3•paulpauper•1h ago•0 comments

Show HN: Ant – A from-scratch JavaScript runtime in 9 MB

https://github.com/themackabu/ant
5•theMackabu•1h ago•0 comments