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.

Curiosity Is No Solo Act

https://thereader.mitpress.mit.edu/curiosity-is-no-solo-act/
1•Petiver•5m ago•0 comments

Philip Roth and David Remnick getting personal (2001)

https://salmagundi.skidmore.edu/articles/2001-philip-roth-david-remnick
1•Caiero•5m ago•0 comments

Here in the World: Letters of Albert Camus, 1944–1959

https://literaryreview.co.uk/here-in-the-world
1•lermontov•6m ago•0 comments

A Simple Proxy for Perplexity

https://www.mercor.com/blog/a-simple-proxy-for-perplexity/
1•reasonableklout•7m ago•0 comments

Why People Keep Their Body Parts After Surgery

https://time.com/article/2026/11/19/when-people-keep-what-surgeons-remove/
1•gmays•12m ago•0 comments

Show HN: NYT style daily word/logic puzzle

https://clusterbust.com/
1•sightspinner•12m ago•0 comments

Huawei convicted of deceiving banks about Iran, stealing US trade secrets

https://www.theguardian.com/technology/2026/nov/24/huawei-china-convicted-deceiving-banks-stealin...
2•andsoitis•13m ago•0 comments

Ding – Toast notifications that morph into each other

https://github.com/yusufCeng1z/ding
2•yusufceng1z•15m ago•0 comments

The pull request is dead

https://www.codeship.com/articles/the-pull-request-is-dead
1•davinci123•18m ago•0 comments

17M lines of Lean, one alleged fatal flaw: challenge to Riemann Hypothesis proof

https://twitter.com/JackyReaps/status/2125043056479240501
3•mrkn1•23m ago•0 comments

Chimera: A physically modeled voice synthesizer

https://www.chimera.audio/
1•ohjeez•24m ago•0 comments

The Rise of Low Precision Floating Point

https://arxiv.org/abs/2611.00301
1•matt_d•24m ago•0 comments

Sparrow Postmortem

https://jakequist.com/articles/sparrow-post-mortem/
2•jakequist•26m ago•1 comments

The American Chestnut is back

https://www.theguardian.com/environment/2026/nov/24/american-chestnut-tree-restored-science-persi...
3•triceratops•26m ago•0 comments

We're racing towards dangers, Yoshua Bengio says

https://www.cbsnews.com/news/ai-yoshua-bengio-warns-dangers-artificial-intelligence/
1•Exoristos•27m ago•0 comments

Migrating Desktop App from Tauri to Native GPUI: 76% Less Idle Memory and

https://galvered.com/blog/muxflow-gpui-migration/
2•birdculture•28m ago•0 comments

Towards Fair Resource Sharing in Agentic LLM Serving

https://arxiv.org/abs/2611.23558
1•matt_d•29m ago•0 comments

Koi: Evidence-Guided, Self-Calibrating Planning for Multi-Cloud LLM Inference

https://gangmuk.github.io/koi/
1•matt_d•31m ago•0 comments

Foreman: A secure self-hosted agent orchestrator

https://www.palkeo.com/en/blog/foreman.html
1•_xor_•32m ago•0 comments

Frontier models pass DeepSWE and Terminal-Bench tasks without doing the work

https://www.shreshthrajan.com/envaudit/
2•shreshthrajan•35m ago•0 comments

I used to orchestrate agents. Now I orchestrate orchestrators

https://www.nijho.lt/post/orchestrating-orchestrators/
1•gmays•36m ago•0 comments

Post Incident Report for Microsoft 365 [pdf]

https://www.365fanatic.com/wp-content/uploads/2026/11/postincidentreport-mo1550821.pdf
4•vinnyglennon•37m ago•1 comments

Bodybench: Testing Adversarial Image Defenses Against AI Nudification Inpainting

https://openreview.net/challenge?redirect=%2Fforum%3Fid%3DBQGCgTjvdo
1•datascientist•38m ago•0 comments

GLP-1 use risk bone fractures and muscle loss in older users

https://www.abc.net.au/news/2026-11-25/glp1-weight-loss-muscle-loss-bone-fractures/107419818
2•Gaishan•40m ago•1 comments

The Future of Email Verification

https://resend.com/blog/the-future-of-email-verification
7•philnash•45m ago•0 comments

The Chinese AI app Talkie engineered to hook kids and mine their data

https://www.abc.net.au/news/2026-11-25/chinese-ai-companion-app-talkie-child-harm-allegations/107...
3•Gaishan•45m ago•0 comments

Running a grammar correction model inside an iPhone keyboard

https://pixdeo.com/blog/gec-part-2-mochi-grammar-model/
2•mromanuk•46m ago•0 comments

Show HN: End User, a game about smuggling AI chips past export controls

https://enduser.fun/?src=hn
1•retrolover83•47m ago•0 comments

Show HN: UFO OPTIX Scanning satellite imagery for flying craft artifacts

https://ufoptix.org
2•markmnl•48m ago•0 comments

T3 Code v0.1.11 sends hashed OpenAI and Claude account IDs at first launch

https://www.everydev.ai/p/tool-t3-code-v0111-sends-hashed-openai-and-claude-account-ids-at-first-...
2•devhouse•51m ago•3 comments