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

FFTW: Fastest Fourier Transform in the West

http://fftw.org/
1•Anon84•59s ago•0 comments

Researchers craft new recipe for groundbreaking alcohol studies

https://medicalxpress.com/news/2025-12-lab-rigor-real-life-craft.html
1•PaulHoule•2m ago•0 comments

Show HN: Fzf-navigator, a terminal file system navigator

https://github.com/benward2301/fzf-navigator
1•benward2301•3m ago•0 comments

Myths about Logitech Developer ID certificate expiration

https://lapcatsoftware.com/articles/2026/1/2.html
1•frizlab•4m ago•0 comments

Working memory for Claude Code – persistent context and multi-instance coord

https://github.com/GMaN1911/claude-cognitive
1•bochoh•8m ago•1 comments

Framework Lock: From 10-38 to Revolutionary

https://zenodo.org/records/18179143
1•andreguzzon•11m ago•1 comments

What's on HTTP?

https://whatsonhttp.com/
1•elixx•14m ago•1 comments

Tumblr removed from Apple App Store over abuse images (2018)

https://www.bbc.com/news/technology-46275138
35•dmschulman•18m ago•10 comments

NASA ends space mission early due to astronaut medical condition

https://www.bbc.com/news/articles/cd9e2y7nkv8o
1•DarkContinent•22m ago•0 comments

Jane Street's Ron Minsky on the Future of Programming (2023)

https://signalsandthreads.com/future-of-programming/
2•weinzierl•26m ago•0 comments

Iran Goes Dark as Government Cuts Itself Off from Internet

https://www.kentik.com/analysis/iran-goes-dark-as-government-cuts-itself-off-from-internet/
1•m-hodges•26m ago•1 comments

Scientists Create Robots Smaller Than a Grain of Sand

https://www.wsj.com/science/scientists-create-robots-smaller-than-a-grain-of-sand-c3081fd0
1•Bostonian•26m ago•1 comments

Securely sending query parameters in HTTP headers

https://github.com/dickhardt/redirect-headers
1•mooreds•28m ago•0 comments

Waymo getting a ticket. It drove off with the ticket on the windshield

https://old.reddit.com/r/Austin/comments/1q7t4e4/waymo_getting_a_ticket_while_i_was_inside_it/
2•m-hodges•31m ago•0 comments

iOS 26 Shows Unusually Slow Adoption Months After Release

https://www.macrumors.com/2026/01/08/ios-26-shows-unusually-slow-adoption/
3•latexr•35m ago•4 comments

Study casts doubt on potential for life on Europa

https://www.reuters.com/science/study-casts-doubt-potential-life-jupiters-moon-europa-2026-01-06/
3•paulpauper•35m ago•0 comments

AI #150: While Claude Codes

https://thezvi.substack.com/p/ai-150-while-claude-codes
1•paulpauper•37m ago•0 comments

Vegetarians, spam, spite programming, and drug names

https://dynomight.substack.com/p/shorts-7
1•paulpauper•37m ago•0 comments

My Daily Lesson in Hacker News Etiquette

1•jannesblobel•41m ago•2 comments

OrbitHQ turns SEO audits and analytics into actionable tasks

https://tryorbithq.com/
1•astralshard•42m ago•1 comments

Valve: Linux hit another all-time high

https://www.gamingonlinux.com/2026/01/valve-amended-the-steam-survey-for-december-2025-linux-actu...
3•sergiotapia•44m ago•1 comments

ChatGPT for Healthcare

https://openai.com/index/openai-for-healthcare
1•tylerrobinson•45m ago•1 comments

Functional programming at the type level in TypeScript

https://github.com/gvergnaud/hotscript
1•RyanZhuuuu•46m ago•0 comments

Who Was Caroline Haslett?

https://www.bbc.co.uk/bitesize/articles/z3rxm39
1•susam•47m ago•0 comments

Effect Institute

https://www.effect.institute/
1•handfuloflight•48m ago•0 comments

Show HN: Legit, Open source Git-based Version control for AI agents

3•jannesblobel•56m ago•0 comments

Canadian statutory severance and termination pay calculator

https://canadaemploymentrules.ca/
1•cerdotca•57m ago•1 comments

Why Are Grok and X Still Available in App Stores?

https://www.wired.com/story/x-grok-app-store-nudify-csam-apple-google-content-moderation/
21•alwillis•59m ago•21 comments

Job postings evaluator against your resume (Chrome extension)

https://github.com/alikh31/job-ad-evaluator
1•alikhoramshahi•59m ago•0 comments

I built an AI agent that deploys a PR to production

2•amouehsan•1h ago•0 comments