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: A giant pixel map of London

https://tiny.london/
1•ktoyame•48s ago•0 comments

Revolut Partially Unavailable

https://www.revolut.com/en-US/system-status/
2•chopin•3m ago•1 comments

Study: New AI tool can predict cancer survival by a single patient selfie

https://www.theguardian.com/technology/2026/oct/19/ai-tool-predict-cancer-survival-patient-selfie
1•giuliomagnifico•4m ago•0 comments

Hackers steal 421,000 emails belonging to members of Germany's far-right AfD

https://www.euronews.com/2026/10/20/hackers-steal-421000-emails-belonging-to-members-of-germanys-...
2•whiteboardr•6m ago•0 comments

Revolut (bank) down since 3 hours

https://www.reddit.com/r/Revolut/comments/1xaklod/is_revolut_down/
4•m3nu•7m ago•0 comments

Google Cloud Service Disruption in UK

https://www.theregister.com/paas-and-iaas/2026/10/20/google-clouds-london-zones-takes-a-nap-multi...
1•giamma•7m ago•1 comments

GitHub's new license gate can block merges. Roll it out carefully

https://code.geohack.top/post/github-open-source-license-compliance-rollout
1•gongoro•10m ago•0 comments

Revolut down as users report app not working

https://www.bbc.com/news/articles/cxdd8mm6qy4mo
9•baal80spam•11m ago•0 comments

Twilight at the Banyan Tree

https://meniir.itch.io/twilight-at-the-banyan-tree
1•altilunium•11m ago•0 comments

I Did This Without Your Knowledge

https://www.lesswrong.com/posts/3375SZNGA5dKHQMie/i-did-this-without-your-knowledge
1•-_-•11m ago•0 comments

Amazon to fund 12 small nuclear reactors at former Indiana coal plant\

https://techcrunch.com/2026/10/19/amazon-to-fund-12-small-nuclear-reactors-at-former-indiana-coal...
1•mpweiher•12m ago•0 comments

You can control this robot (for free)

https://www.youtube.com/watch?v=jorcg0Bx3Cw
1•louwrentius•13m ago•0 comments

Stateless Agents: How to make AI work for teams

https://busabase.com/blog/how-to-make-ai-work-for-teams
1•poppylorry•16m ago•0 comments

Alberta votes to remain in Canada with 70% voting remain

https://www.cbc.ca/news/canada/calgary/alberta-referendum-canada-remain-vote-9.7387871
2•bhouston•16m ago•0 comments

Ask HN: Will Proton integrate Standard Notes?

1•robertlagrant•17m ago•0 comments

Building a reinforcement learning system for e-commerce search

https://www.searchagora.com/blog/building-a-reinforcement-learning-system-for-e-commerce-search
1•pencildiver•19m ago•0 comments

Show HN: PurePDF – merge, split and compress PDFs in the browser with qpdf/WASM

https://purepdfhq.com
1•rahulrana95•24m ago•0 comments

Show HN: 80s computing era meets small local decision models

https://github.com/HuyNguyenAu/amber-8
2•vanilla-latte•24m ago•1 comments

AI slop is a human problem

https://nishanth.blog/posts/ai-slop-is-a-human-problem/
2•crazyphoton•27m ago•1 comments

AfD Leak: What 421,179 Hacked Emails Show about the German Far Right

https://www.heistberlin.com/news/afd-leak-what-421-179-hacked-emails-show-about-the-german-far-ri...
82•firefax•30m ago•31 comments

Revolut Germany Is Down

https://www.revolut.com/de-DE/system-status/
7•lionkor•34m ago•2 comments

China's DeepSeek deep-sixed at all US federal civilian agencies

https://www.theregister.com/security/2026/10/20/deepseek-deep-sixed-at-all-us-federal-civilian-ag...
3•nephihaha•34m ago•0 comments

Henrify – DIY Spotify replacement stack

https://hieron.cc/blog/henrify/
1•antiochian•34m ago•1 comments

UK Defence Startups Are Being Denied Banking Services Under ESG Rules

https://foxandlion.pub/analysis/uk-defence-start-ups-are-being-denied-banking-services-under-esg-...
22•fascinnn•35m ago•3 comments

Everygen AI – AI Video, Image, Shorts and Ads Studio

https://www.everygens.com/
1•Follow_Cloud•38m ago•0 comments

HAR 1.0: The open harness for AI coding workflows you can trust and verify

https://github.com/os-factory/har
1•karimtr•39m ago•0 comments

Block Poster Maker

https://blockposter.ai/
1•vinghunter•40m ago•0 comments

A Tiny 24 FPS E-Ink Game Boy Emulator

https://kottke.org/26/10/a-tiny-24-fps-e-ink-game-boy-emulator
1•Gedxx•43m ago•0 comments

Ask HN: What do you do as a 50yo+ programmer not ready to quit?

3•tracker1•43m ago•0 comments

Show HN: demotime: a web app for removing still/inactive sections out of a video

https://demotime.pages.dev/
1•abdusco•43m ago•1 comments