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.

Protein overabundance is driven by growth robustness

https://www.science.org/doi/10.1126/sciadv.adz9623
1•PaulHoule•1m ago•0 comments

Ask HN: Questions about HN and life questions

1•mwhite•5m ago•0 comments

Unlocking Non-Uniform KV Cache for Efficient Multi-Turn LLM Serving

https://arxiv.org/abs/2606.06302
1•johnbarron•6m ago•0 comments

Astrocytic Contributions to Cognition Across Rodent Models of Brain Dysfunction

https://www.mdpi.com/2218-273X/16/5/662
1•PaulHoule•7m ago•0 comments

Data Centers and Local Job Creation

https://michaeljhicks.substack.com/p/data-centers-and-local-job-creation
1•toomuchtodo•16m ago•1 comments

Fusion Power's Newest Problem Is People Making Nukes

https://gizmodo.com/fusion-powers-newest-problem-is-people-secretly-making-nukes-2000767859
1•johnbarron•16m ago•0 comments

Show HN: Turn your landing page into print-ready business cards

https://www.kleidoprint.com
1•13001r•17m ago•0 comments

Show HN: Local MCP – give Claude, Cursor and ChatGPT access to your whole Mac

https://www.local-mcp.com/en
1•lanchuske•18m ago•0 comments

African Burial Ground National Monument, New York

https://www.nps.gov/afbg/learn/historyculture/index.htm
1•thunderbong•24m ago•0 comments

US attorney opens investigation into California elections-sends prosecutor to LA

https://apnews.com/article/california-primary-ballot-counting-trump-investigation-22b06b32abdca1e...
4•petethomas•35m ago•0 comments

The smart TV in your living room is a node in the AI scraping economy

https://blog.includesecurity.com/2026/06/the-smart-tv-in-your-livingroom-is-a-node-in-the-aiscrap...
1•themaxdavitt•36m ago•0 comments

Exploiting ML-DSA bugs [pdf]

https://cr.yp.to/papers/mldsa-20260601.pdf
1•libroot•36m ago•1 comments

Show HN: Documenting an Obscure Japanese Wii Game – and-Kensaku

https://github.com/TylerJaacks/AndKensakuResearch
1•TylerJaacks•38m ago•0 comments

New Treatment for Alzheimer's and Parkinson's Discovered in Japan

https://www.inc.com/lucia-auerbach/future-of-brain-health-how-a-new-scientific-discovery-could-re...
3•nikolay•44m ago•0 comments

Misu

https://en.wikipedia.org/wiki/Misu
3•carabiner•49m ago•0 comments

eLoran

https://en.wikipedia.org/wiki/ELoran
2•jonbaer•52m ago•0 comments

Ultra-fast CSV parsing and encoding for Elixir

https://github.com/jeffhuen/RustyCSV
1•sntran•53m ago•1 comments

The intracies of modern camera lens repair (2024)

https://salvagedcircuitry.com/sigma-45mm.html
22•transistor-man•53m ago•0 comments

Re: Cache: 0-click SXSS on Next.js via reflected headers

https://zhero-web-sec.github.io/research-and-things/re-cache-excessive-reflection-type-confusion-...
1•logickkk1•55m ago•0 comments

Cumulative average BMI and cognitive decline: a 24-year cohort study

https://link.springer.com/article/10.1007/s00415-026-13696-2
3•PaulHoule•57m ago•0 comments

I built an email agent to triage bogus security reports

https://opencomputer.dev/blog/email-security-triage-agent/
1•iacguy•1h ago•0 comments

Why Do Asian Brands Pretend to Be Japanese?

https://www.thechow.net/p/asian-brands-pretending-japanese-miniso
2•herbertl•1h ago•0 comments

Game Theory Text - Thomas Ferguson

https://web.archive.org/web/20050301121109/http://www.math.ucla.edu/~tom/Game_Theory/Contents.html
2•soupspaces•1h ago•0 comments

The Sandbaggers (1978 – 80) Complete Series

https://archive.org/details/the-sandbaggers-1978-80
3•petethomas•1h ago•1 comments

She won a religious exemption from using AI at work

https://www.businessinsider.com/worker-got-religious-exemption-using-ai-at-work-2026-6
13•dgellow•1h ago•5 comments

Silent Ransom Group Impersonating IT Personnel Through Social Engineering [pdf]

https://www.ic3.gov/CSA/2026/260526.pdf
2•gnabgib•1h ago•0 comments

ToTra – open-source LLM gateway with GDPR/EU AI Act compliance

https://github.com/SugaC-275/ToTra
2•SugaC275•1h ago•0 comments

The Shift in Peering Threatening the Internet's Foundations

https://www.internetsociety.org/blog/2026/06/the-shift-in-peering-threatening-the-internets-found...
6•8organicbits•1h ago•0 comments

Trump Urges 'Less Shackled' Pulte to Fire Intelligence-Community Employees

https://www.wsj.com/politics/national-security/trump-urges-less-shackled-pulte-to-fire-intelligen...
2•petethomas•1h ago•0 comments

If you don't fall for these extortionists' calls they'll show up with USB sticks

https://www.theregister.com/cyber-crime/2026/06/05/if-you-dont-fall-for-these-extortionists-calls...
2•Bender•1h ago•0 comments