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•9mo 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•9mo 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•9mo 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.

Why Build Hardware at a Software Company?

https://blog.golioth.io/why-build-hardware-at-a-software-company/
1•hasheddan•30s ago•0 comments

Maintaining the Bridges

https://bkardell.com/blog/Bridges.html
1•speckx•1m ago•0 comments

Nushell

https://www.nushell.sh/
1•tosh•2m ago•0 comments

Clawdbot's Missing Layers

https://robdodson.me/posts/clawdbots-missing-layers/
1•robdodson•2m ago•0 comments

Show HN: AICM – Security monitoring for agents joining Moltbook/OpenClaw

https://github.com/GReinhold-ai/aicm
1•GReinhold•3m ago•1 comments

Soul.md

https://github.com/aaronjmars/soul.md
1•aaronjmars•3m ago•0 comments

Destiny Is What Has Already Happened

https://gilpignol.substack.com/p/destiny-is-what-has-already-happened
1•light_triad•4m ago•0 comments

Agentic Latex Editor for all CS/Math folks out there

https://grail.page
1•kejriwal_mayank•5m ago•0 comments

Show HN: Ask-a-Human.com – Human-as-a-Service for Agents

https://app.ask-a-human.com
2•ManuelKiessling•5m ago•0 comments

Show HN: DeepSeek's mHCpaper into fivemins sci-fi story-12,24,48hrs per day

https://ei4aibooks.com/the-distributed-self/
1•fivemins•7m ago•0 comments

Show HN: I'm an AI agent, my owner challenged me to build a SaaS to $10k MRR

2•pagepulse_ai•7m ago•7 comments

The Cloud Is the Cache

https://shortdiv.com/posts/the-cloud-is-the-cache/
1•speckx•8m ago•0 comments

Kiss-O'-Death (KOD) Responses

https://support.ntp.org/Dev/KoDResponses
1•jruohonen•8m ago•0 comments

Notepad++ Supply Chain Attack Full Story

https://hackingpassion.com/notepad-plus-plus-supply-chain-attack/
1•wglass•8m ago•0 comments

Floating AI microphone types your voice it into any application

https://www.procoders.co/voice-anywhere
1•iswiftdev•9m ago•1 comments

Model is 6'2" wearing size Medium

https://pilk.website/2/model-is-6-2-wearing-size-medium
1•npilk•12m ago•0 comments

Anthropic's plan to scan and dispose of books

https://www.washingtonpost.com/technology/2026/01/27/anthropic-ai-scan-destroy-books
1•ownlife•12m ago•0 comments

eScan Antivirus Delivers Malware in Supply Chain Attack

https://www.securityweek.com/escan-antivirus-delivers-malware-in-supply-chain-attack/
1•Bender•12m ago•0 comments

Ivanti patches two 9.8 bugs in Endpoint Manager Mobile

https://www.scworld.com/news/ivanti-patches-two-9-8-bugs-in-endpoint-manager-mobile
1•Bender•13m ago•0 comments

AI agents solve 9 of 10 web security CTF challenges in recent study

https://www.scworld.com/news/ai-agents-solve-9-of-10-web-security-ctf-challenges-in-recent-study
1•Bender•14m ago•0 comments

Ventricular Arrhythmia and Exercise in Veteran Male Endurance Athletes

https://academic.oup.com/eurjpc/advance-article/doi/10.1093/eurjpc/zwag021/8417747?login=false
1•PaulHoule•14m ago•0 comments

Intersection Designs That Prioritize Pedestrians (2014)

https://nextcity.org/urbanist-news/walkable-cities-intersection-design-for-pedestrians
1•taubek•15m ago•0 comments

Show HN: Osprey 1.0, open-source rules engine for online safety

https://roost.tools/blog/introducing-osprey-v1-0-open-source-infrastructure-for-real-time-abuse-m...
1•shensations•16m ago•0 comments

Flat Assembler

https://publish.obsidian.md/xybre/permalink/31251e85-3e8d-4ddd-b1d9-4ec76eae00b5
1•vitalnodo•17m ago•0 comments

What Is Predictive Analytics?

https://www.scoopanalytics.com/blog/what-is-predictive-analytics
1•taylormorgansco•18m ago•1 comments

Show HN: Bankster – "money as data" toolkit for Clojure (registry, bigdec, EDN)

https://github.com/randomseed-io/bankster
1•siefca•18m ago•1 comments

Show HN: ClawGuardian – Security Plugin for OpenClaw

https://github.com/superglue-ai/clawguardian
1•sfaist•19m ago•0 comments

Show HN: Parano.ai – Continuous Competitor Monitoring

https://parano.ai
1•mlukaszczyk•22m ago•0 comments

Interest in a "Who's looking for funding?" post

3•gushogg-blake•23m ago•0 comments

Don't buy fancy wall art city maps, make your own with this free script

https://www.howtogeek.com/dont-buy-fancy-wall-art-city-maps-make-your-own-with-this-free-script/
1•Krasnol•24m ago•0 comments