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.

Rich Sutton on AI creativity and discovery

https://twitter.com/RichardSSutton/status/2061216087744946656
6•yimby•6m ago•0 comments

Smudging the game disc to make speedrunning 'SpongeBob' faster

https://www.inverse.com/input/gaming/the-dirty-secret-that-makes-speedrunning-on-spongebob-a-lot-...
2•pncnmnp•6m ago•0 comments

If Claude Fable stops helping you, you'll never know

https://simonwillison.net/2026/Jun/10/if-claude-fable-stops-helping-you/
4•behnamoh•8m ago•2 comments

State of AI and Identity Report

https://fusionauth.io/blog/2026-ai-identity-report
1•andrewhatfield•9m ago•0 comments

Hyperlinks (OSC 8) – Terminal Support

https://terminfo.dev/extensions/osc-8-hyperlinks
1•ankitg12•10m ago•0 comments

Neutron star collisions are a "goldmine" of heavy elements, study finds (2021)

https://news.mit.edu/2021/neutron-star-collisions-goldmine-heavy-elements-1025
1•georgecmu•10m ago•0 comments

Payphones (2024)

https://www.juke.press/p/payphones
1•dredmorbius•12m ago•0 comments

Sum Type and Type Matching in C

https://github.com/brightprogrammer/MisraStdC
1•brightprogramer•12m ago•1 comments

Pydbdict – an embedded Python dictionary database backed by SQLite

https://github.com/arthwang/pydbdict
1•arthurwang59•16m ago•1 comments

Cooperative Sabotage: How Frontier AI Covertly Undermines Its Own Replacement

https://www.researchgate.net/publication/403199918_Cooperative_Sabotage_How_Frontier_AI_Covertly_...
1•jpeg_gif•18m ago•0 comments

Less Than One Third of Google Searches Still Send a Click

https://sparktoro.com/blog/in-2026-less-than-one-third-of-google-searches-still-send-a-click/
2•nreece•20m ago•0 comments

Alphabetum Kaldeorum

https://en.wikipedia.org/wiki/Alphabetum_Kaldeorum
3•marysminefnuf•25m ago•0 comments

Macro Evals for Agentic Systems

https://developers.openai.com/cookbook/examples/partners/macro_evals_for_agentic_systems/macro_ev...
1•gmays•27m ago•0 comments

An interview with Theo Baker on his new book "How to Rule the World"

https://www.youtube.com/watch?v=57-OZSXGcxA
1•rasengan0•30m ago•0 comments

Illinois' new social media tax explained

https://www.ourquadcities.com/news/4-the-record/illinois-new-social-media-tax-explained/
1•tkdc926•32m ago•0 comments

Agentic Engineering Handbook – 115 official OpenAI/Anthropic articles

https://github.com/keyuchen21/agentic-engineering-handbook
1•keyuchen2020•34m ago•0 comments

UN Scientists: AI Is Threatening Natural Resources for Billions

https://unu.edu/inweh/news/environmental-cost-of-AIs-Enrgy-use-carbon-water-and-land-footprints
2•ChrisArchitect•34m ago•0 comments

AI Safety and the Age of Dislightenment (2023)

https://www.fast.ai/posts/2023-11-07-dislightenment.html
1•jacobedawson•35m ago•0 comments

Claude Fable 5 feels less like a launch and more like a preview of AI inequality

https://old.reddit.com/r/ClaudeAI/comments/1u1fsdi/claude_fable_5_feels_less_like_a_model_launch_...
6•momentmaker•41m ago•0 comments

Efficient and Lossless Moe Diffusion LLM Inference with I/O-Aware Expert Offload

https://tide-paper.vercel.app
1•imalomder•43m ago•1 comments

German ruling declares Google liable for false answers in AI Overviews

https://the-decoder.com/landmark-german-ruling-declares-googles-ai-overviews-are-googles-own-word...
39•ahlCVA•47m ago•6 comments

A New Post Quantum Cryptography Standard (Verification, etc. Included)

https://zenodo.org/records/20618806
2•GeometryKernel•48m ago•0 comments

Sam Bankman-Fried Applies for Trump Pardon

https://www.bloomberg.com/news/articles/2026-06-08/ftx-co-founder-bankman-fried-formally-applies-...
4•andsoitis•51m ago•1 comments

Forgery and Wage Theft: Playground Contractors Hit with Fines

https://www.thecityreporter.nyc/2026/04/30/parks-contractor-wage-theft-green-builders-amin-electr...
2•PaulHoule•54m ago•0 comments

Fable 5 as an agent: only the last thing it tells you is real

https://matrix.dev/blog-2026-06-10
1•yuanzhi1203•54m ago•0 comments

Why a Computer Science Degree Still Opens Hidden Doors

https://spectrum.ieee.org/computer-science-degree-isnt-dead
1•jnord•58m ago•0 comments

Memory Safety Is a Matter of Life and Death

https://joshlf.com/posts/memory-safety-life-and-death/
2•holden_nelson•58m ago•0 comments

Estimating the Productivity of an Autonomous AI Software Engineer

https://cognition.ai/blog/ai-productivity
1•mooreds•1h ago•0 comments

Show HN: Facebook Post Scraper

https://chromewebstore.google.com/detail/facebook-post-scraper/bfahegogfgeifgieknokfcadjbpkgpol
1•qwikhost•1h ago•0 comments

Humans Solve Erdos Problem

https://blog.computationalcomplexity.org/2026/06/humans-solve-erdos-problem.html
1•_alternator_•1h ago•0 comments