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.

The carmakers are struggling to compete with China

https://www.bbc.com/news/articles/c4g8vg72z43o
1•nairteashop•3m ago•1 comments

NovaGPU – An open-source GPU architecture written in Verilog

https://github.com/nova-studios-hw/novagpu-ts1t
1•novastudios-hw•3m ago•0 comments

Ask HN: How Much a Difference Does an LLM's Corpus Make?

1•giardini•4m ago•0 comments

Ask HN: Why not have an EU browser?

1•osigurdson•4m ago•0 comments

Oilfield units: a measurement system so cursed it made me change career [video]

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

Clojure → YAMLScript transpiler: using LLMs for normalization, SCI for execution

https://github.com/whitecell-dev/cljys
1•MaykonMan•7m ago•0 comments

Unemployment Simulator 2018

https://store.steampowered.com/app/3252360/Unemployment_Simulator_2018/
1•MrBuddyCasino•8m ago•0 comments

DOJ charges Google staffer over Polymarket trades netting $1.2M

https://text.npr.org/nx-s1-5836659
1•hvb2•8m ago•0 comments

Show HN: Product Trailers – The TV Channel for Product Hunt Launches

https://producttrailers.xyz
2•kentich•9m ago•0 comments

SpaceX: Did Elon Musk Just Rig the Stock Market? [video]

https://www.youtube.com/watch?v=sYA-z0Y8WRQ
6•mgh2•14m ago•0 comments

Show HN: Pre-computed market context for agents

https://tickerdb.com/
1•wolfman1•18m ago•0 comments

Sigbovik 2026 Proceedings [pdf]

https://sigbovik.org/2026/proceedings.pdf
4•boodleboodle•24m ago•0 comments

JAL to launch Moon payload service, aims to preserve heritage

https://english.kyodonews.net/articles/-/76763
2•anigbrowl•24m ago•0 comments

Amdahl's law for AI agents

https://electric.ax/blog/2026/02/19/amdahls-law-for-ai-agents
1•pramodbiligiri•26m ago•0 comments

Class CrunchLabs

https://www.classcrunchlabs.org/
3•mgarciaisaia•32m ago•0 comments

Parallelizing Arbitrary Python Code by Running 1M Python Interpreters on a GPU

https://github.com/jndean/gpusnek
1•jffry•37m ago•0 comments

World likely to breach 1.5°C limit in next five years

https://news.un.org/en/story/2025/05/1163751
4•geox•38m ago•0 comments

Discovering the Saddle Ridge Hoard

https://americanhistory.si.edu/explore/exhibitions/value-money/online/new-acquisitions/saddle-rid...
2•thunderbong•42m ago•0 comments

What Is a Neoengineer?

https://lukaswerner.com/post/2026-05-27@genz-neoengineer
2•chilipepperhott•43m ago•1 comments

Want to pack a public meeting in Kansas? Just say it's about a 'data center'

https://klcjournal.com/want-to-pack-a-public-meeting-in-kansas-just-say-its-about-a-data-center/
2•gnabgib•45m ago•0 comments

MIT president: Why so many optimistic scientists are losing heart

https://www.bostonglobe.com/2026/05/26/opinion/science-funding-cuts-mit/
7•andrewl•48m ago•0 comments

C++ CLI for folder encryption with AES-256-GCM and USB-based key loading

1•nextma•50m ago•0 comments

OpenGlasses: Meta Glasses open source app

https://github.com/straff2002/OpenGlasses
2•exadeci•1h ago•0 comments

When everyone has access to the same AI models

https://www.mckinsey.com/capabilities/quantumblack/our-insights/from-ai-table-stakes-to-ai-advant...
2•jameslk•1h ago•0 comments

Hallucinate – Massively Multiplayer Online Rave

https://hallucinate.site
40•stagas•1h ago•7 comments

We're in the Over-Engineering Game Now

https://plc.vc/cdx
2•pclark•1h ago•0 comments

Relativistic Space Invaders

https://github.com/jarrydac/relativistic-space-invaders/
3•dargscisyhp•1h ago•0 comments

Dirty Frag: a kernel zero-day vs. container and microVM sandboxes

2•ShivamNayak11•1h ago•0 comments

I'm bad at game art. So I cheated. [video]

https://www.youtube.com/watch?v=gb0dY7VyoBg
1•sharma-arjun•1h ago•0 comments

The Spy Who Came in from the WiFi: Beware of Radio Network Surveillance

https://www.kit.edu/kit/english/pi_2025_069_the-spy-who-came-in-from-the-wifi-beware-of-radio-net...
2•gnabgib•1h ago•0 comments