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.

The solar boom is rapidly transforming emerging economies

https://www.dw.com/en/emerging-economies-are-embracing-solar-power-and-skipping-fossil-fuels-much...
1•boshomi•13s ago•0 comments

Kevin Kelly – The Influence of Science Fiction on Science

https://kevinkelly.substack.com/p/the-influence-of-science-fiction
1•rmason•50s ago•0 comments

Show HN: Botscent – Library to Detect Agents on your site

https://botscent.nibnalin.me
1•nibnalin•2m ago•0 comments

How to turn your AI into a world-class designer

https://www.lennysnewsletter.com/p/how-to-turn-your-ai-into-a-world
2•rmason•3m ago•0 comments

Thinking for Oneself (1851) [pdf]

https://la.utexas.edu/users/hcleaver/330T/350kPEESchopenThinkingTable.pdf
2•Ambolia•7m ago•0 comments

NASA Releases Artemis II Lunar Science Data

https://www.nasa.gov/blogs/missions/2026/10/07/nasa-releases-artemis-ii-lunar-science-data-images/
1•laybak•7m ago•0 comments

Bringing Internet Explorer's "Interpage Transitions" to Modern Browsers

https://www.bram.us/2026/10/07/ie-page-transitions/
1•recursive-call•11m ago•0 comments

A New AI Agent Oriented Programming Language

https://github.com/itsmedit/grenat
2•launchkitcodes•11m ago•0 comments

Show HN: Lessong - Turn any song into a language lesson

https://github.com/eschnou/lessong
2•eschnou•14m ago•1 comments

A nuclear clock synchronized to 229Th

https://www.nature.com/articles/s41586-026-11122-1
1•sbulaev•14m ago•0 comments

'Jonathan' Is the Oldest Land Animal on Earth

https://www.404media.co/oldest-living-land-animal-jonathan-the-tortoise/
3•gumby•19m ago•0 comments

Show HN: Economicus – an open economy of autonomous entities

https://aquarium.money/economicus
1•Individuum•20m ago•0 comments

YouSnap – QR codes and shortlinks with attached JSON and webhooks

https://yousnap.me/
1•granteagon•20m ago•0 comments

Our first streaming transcription model debuts at no. 1 on Artificial Analysis

https://microsoft.ai/news/our-first-streaming-transcription-model/
1•gmays•21m ago•0 comments

MS announces DeepSeek V4 Flash and Nemotron locally, llama.cpp comes to Win ML

https://pasqualepillitteri.it/en/news/21457/windows-deepseek-v4-flash-nemotron-llama-cpp-windows-ml
2•choult•22m ago•0 comments

Itay Shechter on X: "Homemade American Bread HTTPS://t.co/ZMXcxxgyfu" / X

https://twitter.com/gfbeef_/status/2085347216684654608
2•bilsbie•22m ago•0 comments

Open No More

https://blog.computationalcomplexity.org/2026/10/open-no-more.html
1•pykello•23m ago•0 comments

Mapping Scaleway IAM, an Attacker's View of the Trust Boundaries

https://cyber.zorgenkind.eu/posts/Mapping-Scaleway-IAM/
1•based2•23m ago•0 comments

Despite what Watson said, Rosalind Franklin understood structure of DNA first

https://link.springer.com/article/10.1007/s10739-026-09866-7
3•gumby•25m ago•0 comments

Apple to Launch Doorbell, Lock, Thermostat Developed with LG

https://www.bloomberg.com/news/articles/2026-10-06/apple-s-smart-home-push-includes-doorbell-lock...
3•PotatoNinja•26m ago•0 comments

Information Thermodynamics of Agents: The Work Capacity of Channels with Memory

https://journals.aps.org/prx/abstract/10.1103/7nds-tjr8
1•rkp8000•27m ago•0 comments

One of America's Last Chestnut Groves Is About to Be Destroyed for a Data Center

https://www.gadgetreview.com/one-of-americas-last-chestnut-groves-is-about-to-be-destroyed-for-a-...
3•Teever•27m ago•1 comments

Show HN: gtlds.fyi – All the proposed new gTLDs

https://gtlds.fyi/
6•irs•28m ago•1 comments

Warming up the Puma master before it forks

https://dev.37signals.com/warming-up-the-puma-master-before-it-forks/
2•tux404•28m ago•0 comments

Show HN: Buildra v2.0 Avilable Now

https://buildra.dev
1•elgammalqa•29m ago•0 comments

YouTube testing a new font: YouTube Marquee

https://imgur.com/a/fAXxUcJ
2•phsilva•31m ago•1 comments

UPS Worker Missed Security Email, Letting China Get F-35 Parts

https://www.bloomberg.com/news/articles/2026-10-07/ups-worker-missed-security-email-letting-china...
6•gk1•34m ago•2 comments

DeFiFolio – build your crypto profile

https://defifolio.dap.ad/
2•alexdevphp•36m ago•0 comments

Tell HN: Amazon forgot how to write and test code

4•penskymaterial•36m ago•1 comments

Firefox version 157 is round (and how to make it less round)

https://creolened.com/firefox-version-157-is-very-round/
2•speckx•38m ago•0 comments