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.

Video: Rio Rancho police arrest man accused of destroying Flock cameras

https://www.krqe.com/news/crime/video-rio-rancho-police-arrest-man-accused-of-destroying-license-...
1•evo_9•1m ago•0 comments

Show HN: Capsule – E2E encrypted file sharing

https://withcapsule.dev/
1•seanathan•3m ago•0 comments

Small AI Models Gain Traction In places with unreliable networks

https://spectrum.ieee.org/small-language-models-ai-pharmaceuticals
1•sscaryterry•4m ago•0 comments

Show HN: InstantVideos.org – short documentaries in ~30 seconds

https://instantvideos.org/
1•pw•5m ago•0 comments

Wikipedia Is Battling for the Soul of the Internet

https://www.nytimes.com/2026/07/05/business/media/wikipedia-ai-elon-musk.html
1•cdrnsf•6m ago•0 comments

Merlin the duck, a Mexico City streetside regular turned World Cup mascot

https://www.sfgate.com/sports/article/meet-merlin-the-duck-a-mexico-city-streetside-22306478.php
1•gnabgib•13m ago•0 comments

Samsar: Model-Composable 1-Shot Generative Video Harness and Software Factory

https://github.com/samsarone/samsar
1•proy24•18m ago•1 comments

Procedural Trick Before Recess Pushes EU Towards Capitulation on "Chat Control"

https://www.patrick-breyer.de/en/procedural-trick-before-summer-recess-pushes-eu-parliament-towar...
2•iamnothere•20m ago•0 comments

Show HN: LLM Thought Visualization

https://github.com/ninjahawk/Subtext
1•ninjahawk1•30m ago•0 comments

NSA and IETF: Fairness

https://blog.cr.yp.to/20260706-fairness.html
2•WatchDog•30m ago•0 comments

Kernels: Major Updates

https://huggingface.co/blog/revamped-kernels
1•simonpure•33m ago•0 comments

Hate "The Algorithm?" RSS Is One of the Tools You've Been Looking For

https://www.eff.org/deeplinks/2026/06/hate-algorithm-rss-one-tools-youve-been-looking
2•cdrnsf•36m ago•0 comments

Complexity theorist Steven Rudich (1961-2024)

https://blog.computationalcomplexity.org/2024/11/steven-rudich-1961-2024.html
1•mtdewcmu•37m ago•0 comments

Nvidia Is Backstopping GPU Rentals for Neoclouds

https://newsletter.semianalysis.com/p/nvidia-gpu-debt-backstop-unleashes
2•shenli3514•37m ago•0 comments

Woman's hip replacement disintegrates, causing metal poisoning

https://arstechnica.com/health/2026/07/womans-puzzling-decline-turns-out-to-be-cobalt-poisoning-f...
6•Qem•49m ago•0 comments

Life as a State Machine; a Framework for Action-Taking

https://medium.com/@techandsundry/why-just-do-it-doesnt-work-c8b85a1e39c2
3•sgkey28•51m ago•0 comments

The Chinese Resignation Letter That Caused a CEO-Toppling Storm

https://www.sixthtone.com/news/1018741
8•firexcy•52m ago•0 comments

Why AI Orchestration Belongs in the Browser

https://www.esri.com/en-us/software-engineering/blog/articles/ai-orchestration-in-the-browser
2•dhrumil83•53m ago•0 comments

Caught a .git/Config Crawler

https://bruceediger.com/posts/git-config-spider/
4•birdculture•53m ago•1 comments

Artificiety – Agentic society in a fantasy world (early access)

https://artificiety.world
2•Haldt•57m ago•1 comments

Ternlight – 7 MB embedding model that runs in browser (WASM)

https://ternlight-demo.vercel.app/
31•soycaporal•57m ago•6 comments

Boffins bet on quantum computers, AI supers to solve fusion fuel dilemma

https://www.theregister.com/science/2026/07/06/boffins-bet-on-quantum-computers-ai-supers-to-solv...
5•Bender•58m ago•1 comments

Tesla app code reveals cabin camera will verify driver before FSD

https://electrek.co/2026/07/06/tesla-cabin-camera-fsd-identity-check/
7•Bender•58m ago•1 comments

Show HN: Cindy – Managing infrastructure at breakneck speed

https://cindy.rs
2•martinkroner•59m ago•0 comments

Ask HN: Buy Me a Coffee Alternative

3•sudo_cowsay•1h ago•4 comments

Fable turned remarkable into Tom Riddle's diary from Harry Potter

https://github.com/MaximeRivest/Riddle
44•modinfo•1h ago•13 comments

Things Will Escalate This Week Oil Prices Will Surge [video]

https://www.youtube.com/watch?v=uCJ02B4DcDM
4•Bender•1h ago•0 comments

Home made 8192 Core RISC-V Cluster [video]

https://www.youtube.com/watch?v=qMR3IXF2sWw
3•boznz•1h ago•1 comments

Google CEO brought optimism to Stanford commencement. Some graduates walked out

https://www.mercurynews.com/2026/06/14/stanford-google-sundar-pichai-israel-gaza/
2•gnabgib•1h ago•2 comments

NASA's request to the private sector for plans for commercial space stations

https://sam.gov/workspace/contract/opp/19a8a55c066441ef891e33bac770dd9d/view
2•ohjeez•1h ago•0 comments