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.

Trump Threatens 100% Tariffs over Digital Services Tax on U.S. Firms

https://www.cnbc.com/2026/06/26/trump-tariff-trade-tech-tax.html
1•billybuckwheat•9s ago•0 comments

The AI-Run Business Index: measuring execution, not AI adoption

https://www.leapd.ai/resources/state-of-ai-run-businesses-2026
1•Cyrus2050•38s ago•0 comments

Show HN: Even, the terminal-first desktop workspace

https://eventerm.com/
1•todience•41s ago•0 comments

Font-Family Recommendations

https://chrismorgan.info/font-family
1•birdculture•1m ago•0 comments

The Thing We All Obviously Want

https://kmicinski.com/thing-we-all-want
1•matt_d•2m ago•0 comments

Ask HN: Can distributed data centers in individual households provide UBI?

1•SuboptimalEng•4m ago•1 comments

Ask HN: If we could remake Linux in 2026, what would you change?

1•alonsovm44•4m ago•1 comments

Pystd, similar-ish functionality with a fraction of the compile time

https://nibblestew.blogspot.com/2026/06/pystd-standard-library-similar-ish.html
1•ibobev•5m ago•0 comments

The Dottie Number

https://lawrencecpaulson.github.io//2026/06/26/Dottie_Number.html
1•ibobev•11m ago•0 comments

Show HN: Forensic stock analysis from SEC filings, no LLM guessing (free)

https://stockonomy.net/proof
1•SEC_Lense•12m ago•0 comments

Show HN: Deskmate Live – AI Desktop Pet Companions

https://deskmatelive.com/
1•valisvalis•13m ago•0 comments

The Nationwide Backlash Against Cameras Watching Your Car

https://www.wsj.com/us-news/the-nationwide-backlash-against-cameras-watching-your-car-401a656a
3•JumpCrisscross•15m ago•0 comments

SpaceX bonds sell off days after AI and rocket group's $25B debt deal

https://www.ft.com/content/04f98e21-4ce7-43d2-8651-44557e12c31c
2•JumpCrisscross•18m ago•0 comments

President warns of 100% tariff on countries implementing digital services tax

https://www.ft.com/content/5d886d47-c509-44a4-9077-bcd25158b61e
5•JumpCrisscross•19m ago•0 comments

AgentKits – 60 production-ready AI agent blueprints with guardrails

https://www.agent-kits.com
2•stoicstoic•19m ago•0 comments

The National Parks Were Reportedly Told to Stay Silent on Deaths

https://www.outsideonline.com/outdoor-adventure/environment/nps-internal-memo-deaths/?link_source...
5•LostMyLogin•20m ago•0 comments

A C++ implementation of a fast hash map and hash set using hopscotch hashing

https://github.com/Tessil/hopscotch-map
6•gjvc•21m ago•0 comments

Evan's Jujutsu Tutorial

https://evmar.github.io/jjtut/
2•joecobb•21m ago•0 comments

A couple of months ago in Miami, I sat down and dumped my brains

https://ghuntley.com/miami/
1•ghuntley•22m ago•0 comments

After 80 Years, Mathematicians Give Famed 'Erdős Method' an Upgrade

https://www.quantamagazine.org/after-80-years-mathematicians-give-famed-erdos-method-an-upgrade-2...
2•ibobev•24m ago•0 comments

The gap between open weights LLMs and closed source LLMs

https://blog.doubleword.ai/frontier-os-llm
5•kkm•24m ago•0 comments

Primed for Malware: Stop Selling Compromised Android Devices

https://www.eff.org/deeplinks/2026/06/primed-malware-stop-selling-compromised-android-devices
2•hn_acker•25m ago•0 comments

We Can Still Stop California's 3D Printer Surveillance Scheme

https://www.eff.org/deeplinks/2026/06/we-can-still-stop-californias-3d-printer-surveillance-scheme
4•hn_acker•25m ago•0 comments

Build real agentic apps using CUGA

https://huggingface.co/blog/ibm-research/cuga-apps
1•gmays•25m ago•0 comments

32bit Apple app running on M4 natively

https://old.reddit.com/r/MacOS/comments/1ufug75/major_breakthrough_32bit_apple_app_running_on_m4/
2•carlosjobim•26m ago•0 comments

Chatbots vs. Ozone

https://blog.dshr.org/2026/05/chatbots-vs-ozone.html
1•anonymous_user9•27m ago•0 comments

Lawmakers Must Act Now to Prevent Armed Police Drones

https://www.eff.org/deeplinks/2026/06/lawmakers-must-act-now-prevent-armed-police-drones
5•hn_acker•27m ago•0 comments

Show HN: I build an app for you to take a break from AI. RainBreak

https://rainbreak.franzai.com/
1•franze•29m ago•0 comments

The internet is all bots now [video]

https://www.youtube.com/watch?v=A9GdcgjRm6A
2•gurjeet•31m ago•0 comments

Ask HN: Which AI concepts are here to stay, and which will churn?

3•datsci_est_2015•32m ago•2 comments