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.

Show HN: Terminal Gym – a Claude mod that makes you do pushups between prompts

https://github.com/DrumAndCode/terminal-gym
1•heynaitik•3m ago•0 comments

An Algorithmic Failure Beneath the Secret Ballot

https://blog.citp.princeton.edu/2026/08/03/an-algorithmic-failure-beneath-the-secret-ballot/
1•leecoursey•4m ago•0 comments

The KV Cache Is the New Memory Wall

https://jaehun.me/en/posts/paper-2609-30854v1/
2•acossta•6m ago•0 comments

The Server Side Cloud Swift SDK

https://cloud.google.com/blog/topics/developers-practitioners/introducing-the-server-side-cloud-s...
2•frizlab•6m ago•1 comments

Holocron: The Backup of Last Resort

https://smyck.net/2026/10/03/holocron-the-backup-of-last-resort/
1•ahlCVA•10m ago•0 comments

Show HN: I made a browser-based instrument out of the CHOMPI CLUB source

https://www.temeculadsp.com/nibbi/play
1•johnwheeler•13m ago•0 comments

How to Create More Than You Think

https://th3realsacha.substack.com/p/the-power-of-overthinking
1•yarapavan•14m ago•0 comments

We asked three AIs about the risks of AI. They disagreed with their makers

https://vocemundi.com/we-asked-three-ais-about-the-risks-of-ai-they-disagreed-with-their-makers-a...
1•thomaslaurent•16m ago•0 comments

13% of my website visitors block Google Analytics

https://markosaric.com/google-analytics-blocking/
2•birdculture•16m ago•1 comments

What's the Date?

https://www.lesswrong.com/posts/vzKWsEskYBEWTwpBP/what-s-the-date
1•cubefox•18m ago•0 comments

Using Theme park rides and smartphones for demonstrating Newtonian mechanics

https://iopscience.iop.org/article/10.1088/1361-6404/aea271
1•bryanrasmussen•19m ago•1 comments

Being a good CPU neighbor (2016)

https://barro.github.io/2016/02/being-a-good-cpu-neighbor/
1•bilegeek•20m ago•0 comments

Show HN: thezoomist.com – Closer to Everything

https://thezoomist.com/
1•mmdtdev•24m ago•0 comments

Software 2.0 writes Software 1.0

https://www.giete.ma/blog/software-2-0-writes-software-1-0
2•gietema•24m ago•0 comments

Building Serendipity (2011)

https://randsinrepose.com/archives/building-serendipity/
1•mooreds•25m ago•0 comments

The clanker torture nexus manifesto

https://jregory.substack.com/p/why-we-are-torturing-clankers
1•Murfalo•30m ago•0 comments

Docker has always used microVMs (well since 2016)

https://dave.recoil.org/docker-has-always-used-microvms/
4•avsm•32m ago•0 comments

What we learned running an agentic hackathon with 30k+ hackers

https://twitter.com/rvivek/status/2106264394414108925
2•rvivek•34m ago•0 comments

It's Time to Rename Cybersecurity Awareness Month

https://semgrep.dev/blog/2026/rename-cybersecurity-awareness-month/
1•mooreds•34m ago•0 comments

Ask HN: How are you preparing your children for an AI-powered world?

1•pwython•35m ago•3 comments

City building games have a Soul Problem pt.2

https://www.radical-elements.com/minor-epiphanies/city-building-games-have-a-soul-problem-pt2
2•lexx•35m ago•0 comments

Israel: More Measures to Prevent Civilian Casualties Than Any Other Nation

https://www.newsweek.com/israel-implemented-more-measures-prevent-civilian-casualties-any-other-n...
3•Tomte•37m ago•1 comments

Offloading System Updates to My NAS

https://ls-root.de/posts/download-updates-on-unraid/
1•ls-root•38m ago•0 comments

Australia May Have Just Solved the Housing Crisis [video]

https://www.youtube.com/watch?v=QtZfbWOkoIY
1•thelastgallon•38m ago•1 comments

One Line, 25M Revenue

https://huntersoftwareconsulting.com/posts/2026-10-02-one-line-25m/
2•mooreds•40m ago•0 comments

The UK's Sovereign AI Lab

https://cosine.sh
2•maxall4•42m ago•0 comments

How Firestore Matches Realtime Queries

https://rockwotj.com/blog/firestore-query-matching/
2•Malp•42m ago•0 comments

Doffly – Know Before It Goes Down

https://www.doffly.pro/
1•anelkabag•42m ago•1 comments

Vietnam's economy grew 9.95% in Q3, fastest pace in 4 years

https://asia.nikkei.com/economy/vietnam-s-economy-grew-9.95-in-q3-fastest-pace-in-4-years
1•michaelhillaert•42m ago•0 comments

Show HN: Agentlytics – cookieless analytics your AI agent can read and act on

https://measuremy.site
2•developeron29•44m ago•0 comments