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.

Not mine, but it's a website where you can use a segment display

https://aresluna.org/segmented-type/
1•unexpectedVCR•15s ago•0 comments

ECB raises interest rates for the first time in three years

https://www.euronews.com/business/2026/06/11/ecb-raises-interest-rates-for-the-first-time-in-thre...
1•praseodym•25s ago•0 comments

Show HN: A Markdown web clipper that doesn't break tables, code, or math

https://chromewebstore.google.com/detail/markdown-web-clipper-—-sa/dpkinbemdemheacegfjbbkclcpbf...
1•tigrandza•1m ago•0 comments

Human Is the Agent: SolveIt Changed My Programming Journey After 25 Years (2025)

https://christhomas.co.uk/blog/2025/09/24/the-human-is-the-agent-how-solveit-changed-my-programmi...
1•0xpgm•2m ago•0 comments

Trouble Ahead for GLP-1 Drugs as Health Plans Stop Paying

https://www.forbes.com/sites/brucejapsen/2026/06/09/trouble-ahead-for-glp-1-drugs-as-health-plans...
1•brandonb•2m ago•0 comments

'I love the inflation,' Trump says as prices rise amid Iran war

https://www.reuters.com/world/i-love-inflation-trump-says-prices-rise-amid-iran-war-2026-06-10/
1•geox•3m ago•0 comments

CitedBy – See if AI models mention your company for $1

https://www.thrivestack.ai/solutions/ai-visibility
2•roniin19•5m ago•0 comments

Once again players are right to suspect AI was used in a game

https://www.pcgamer.com/software/ai/once-again-players-are-right-to-suspect-ai-was-used-in-a-game...
1•isaacfrond•6m ago•0 comments

Show HN: Claude Code, no need to worry about sunk costs anymore

https://github.com/claude-schwabe/schwabe
1•schwabe•7m ago•0 comments

I Was a V.C. Partner. We Can't Let Silicon Valley Buy Democracy

https://www.nytimes.com/2026/06/11/opinion/silicon-valley-ai-politics.html
2•sebastian_z•7m ago•0 comments

Red5 Pro APIs – Postman API Network

https://www.postman.com/red5-streaming
1•mondainx•10m ago•0 comments

Demystifying the View Transition Pseudo Tree

https://master.dev/blog/demystifying-the-view-transition-pseudo-tree/
1•ibobev•11m ago•0 comments

The HUGEST, the MOST TREMENDOUS FreeBSD page-cache write primitive

https://bumsrake.de/
1•mvo•12m ago•0 comments

Pulling on a Thread

https://www.johndcook.com/blog/2026/06/10/pulling-on-a-thread/
1•ibobev•12m ago•0 comments

Researchers say they trained a foundation model from scratch for about $1,500

https://venturebeat.com/technology/researchers-say-they-trained-a-foundation-model-from-scratch-f...
2•vlod•12m ago•0 comments

Enhance RAW image processing with Core Image [video]

https://developer.apple.com/videos/play/wwdc2026/305/
1•trymas•13m ago•1 comments

Critical auth bypass vulnerability in phpBB

https://www.aikido.dev/blog/phpbb-authentication-bypass-rce
1•Tiberium•14m ago•1 comments

Formally proving a calculation with Claude and Lean

https://www.johndcook.com/blog/2026/06/10/claude-and-lean/
1•ibobev•14m ago•0 comments

Biological Evolution and Information Acquisition

https://www.construction-physics.com/p/biological-evolution-and-information
1•crescit_eundo•15m ago•0 comments

The Salary Hiding Inside the Robot – Starship and Serve Robotics

https://atomsfrontier.substack.com/p/the-salary-hiding-inside-the-robot
1•jpatel3•15m ago•0 comments

Show HN: Zerod – a Rust daemon to drive Bluetooth audio on a Pi Zero W

https://tsirysndr.leaflet.pub/3mnz5dda43k2z
2•tsiry•15m ago•0 comments

Are we defaulting to VM-level sandboxing before understanding the threat model?

1•samhita-alla•16m ago•0 comments

The Apple Charging Situation

https://randsinrepose.com/guides/apple-charging/apple-charging-guide.html
1•mhb•17m ago•0 comments

Mapping Every Flock License Plate Reader Near US World Cup Stadiums

https://www.wired.com/story/us-world-cup-2026-alpr-camera-stadiums/
1•jhonovich•17m ago•0 comments

Show HN: Captcha: The Game – prove you are not a robot, physically

https://human.foliyo.kr/
1•blue-b•18m ago•0 comments

The Nationalization of American Science

https://marginalrevolution.com/marginalrevolution/2026/06/the-nationalization-of-american-science...
1•mariusae•19m ago•0 comments

Neural Cellular Automata with WebGPU

https://ivanludvig.dev/tech/neural-ca-webgpu
1•IvanLudvig•19m ago•0 comments

Show HN: A modern XMPP client in Tcl/Tk

https://github.com/pounceandmiss/tacky
1•wusspuss•22m ago•0 comments

Lines of Code Got a Better Publicist

https://curlewis.co.nz/posts/lines-of-code-got-a-better-publicist/
19•RyeCombinator•24m ago•5 comments

Temporal is code-first. We built the visual authoring layer it's missing

https://www.workflowbuilder.io/blog/temporal-workflow-editor-durable-execution-visual-authoring
1•maciek996•25m ago•0 comments