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.

Kansas Sends Letters to Trans People Demanding the Surrender of Drivers Licenses

https://www.erininthemorning.com/p/kansas-sends-letters-to-trans-people
1•speckx•1m ago•0 comments

Story of XZ Backdoor [video]

https://www.youtube.com/watch?v=aoag03mSuXQ
1•Ulf950•4m ago•0 comments

Show HN: Soften Sleep – an iOS app for waking up at 3 AM with racing thoughts

https://apps.apple.com/nl/app/soften-sleep-3-am-wake-relief/id6759115897
1•ilkeraltin•5m ago•0 comments

"TBPN" and the Rise of the Tech-Friendly Talk Show

https://www.newyorker.com/culture/the-lede/tbpn-and-the-rise-of-the-tech-friendly-talk-show
1•stackbutterflow•6m ago•0 comments

Show HN: Tiqd – a checklist library for life tasks

https://www.tiqd.app/
1•rvalley•7m ago•0 comments

OSS Maintainers Can Inject Their Standards into Contributors' AI Tools

https://nonconvexlabs.com/blog/oss-maintainers-can-inject-their-standards-into-contributors-ai-tools
2•aaddrick•7m ago•1 comments

Show HN: Bored, so I graphed 2M Telegram users by their gifts

https://tgnetwork.sarm.solutions/
3•dmpyatyi•8m ago•1 comments

NSA and IETF – The Structure of the Debate

https://blog.cr.yp.to/20260221-structure.html
1•_tk_•8m ago•0 comments

Anthropic gives Opus 3 exit interview, "retirement" blog

https://www.anthropic.com/research/deprecation-updates-opus-3
1•colinhb•9m ago•0 comments

Show HN: Sonde – Open-source LLM analytics (track brand mentions across LLMs)

https://github.com/compiuta-origin/sonde-analytics
2•marcopinato•9m ago•0 comments

First writing may be 40k years earlier than thought

https://www.bbc.com/news/articles/cvgknj7yyv2o
1•xoxxala•10m ago•0 comments

96.5% of confusables.txt from Unicode is not high-risk

https://paultendo.github.io/posts/confusable-vision-visual-similarity/
1•colejohnson66•10m ago•0 comments

Rampant online abuse and deepfakes targeting women on Substack

https://lettersfromafeminist.substack.com/p/an-open-letter-to-the-substack-team
2•navs•10m ago•0 comments

Workers on training AI to do their jobs

https://www.theguardian.com/technology/2026/feb/26/workers-training-ai-to-do-their-jobs
2•n1b0m•11m ago•0 comments

The Forever Pollution Project

https://foreverpollution.eu/
2•doener•11m ago•0 comments

Air defence in Kyiv visible on ISS video stream [video]

https://www.youtube.com/watch?v=m5VHETDtQ_M
1•IndrekR•11m ago•0 comments

zram

https://wiki.archlinux.org/title/Zram
1•tosh•11m ago•0 comments

Ask HN: What causes Claude's '[mistake] – wait, no [correction]' pattern?

1•alastairr•12m ago•2 comments

OpenAI's Kevin Weil on the Future of Scientific Discovery

https://speedrun.substack.com/p/openai-kevin-weil-future-of-scientific-discovery
1•7777777phil•13m ago•0 comments

OpenAI Codex and Figma launch seamless code-to-design experience

https://openai.com/index/figma-partnership/
1•JeanKage•16m ago•0 comments

CodeSpeak, next-generation programming language powered by LLMs

https://codespeak.dev/
1•pjmlp•17m ago•0 comments

"Superintelligence and Law"

https://papers.ssrn.com/sol3/papers.cfm?abstract_id=6302179
1•doubleuinsights•17m ago•0 comments

Show HN: EZClaw – Deploy OpenClaw in Minutes

https://www.ezclaw.cloud
1•HiTechK•17m ago•1 comments

Hot take: movies suck because there is no rental market

https://tildes.net/~movies/1sqi/hot_take_movies_suck_because_there_is_no_rental_market
1•PaulHoule•18m ago•0 comments

Does Agents.md Help Coding Agents?

https://academy.dair.ai/blog/agents-md-evaluation
1•omarsar•19m ago•0 comments

BuildKit: Docker's Hidden Gem That Can Build Almost Anything

https://tuananh.net/2026/02/25/buildkit-docker-hidden-gem/
1•jasonpeacock•19m ago•0 comments

Lessons from my overly-introspective, self-improving coding agent

https://ngrok.com/blog/bmo-self-improving-coding-agent
1•EndEntire•20m ago•0 comments

Show HN: WebGL mipmap renderer for a zoomable R/place on a real world map

https://worldcanvas.art/
1•recuerdame•20m ago•0 comments

Is AI Making Us Dumb?

https://profgmedia.substack.com/p/is-ai-making-us-dumb
2•obscurette•20m ago•0 comments

Bitly handles 93 writes/s – URL shortener interviews ask for 1160

https://saneengineer.com/posts/2026-02-10-url-shortener/index.html
4•anivan_•21m ago•1 comments