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.

Nancy Cartwright: Is It All a Big Lie?

https://www.zeit.de/feuilleton/2026-08/nancy-cartwright-wissenschaft-philosophie-gesetze-verlaess...
1•Tomte•29s ago•0 comments

Bootstrap 6 Alpha

https://blog.getbootstrap.com/2026/10/08/bootstrap-6-alpha/
1•hbcondo714•1m ago•0 comments

When code is cheap, judgement becomes the job

https://swizec.com/blog/when-code-is-cheap-judgement-becomes-the-job
1•rcardo11•2m ago•0 comments

Documents Reveal Secrets Exposed to China in 2001 Spy Plane Incident (2017)

https://theintercept.com/2017/04/10/snowden-documents-reveal-scope-of-secrets-exposed-to-china-in...
1•Teever•3m ago•0 comments

The AI Model Distillation Paradox

https://www.lawfaremedia.org/article/the-ai-model-distillation-paradox
1•hn_acker•4m ago•0 comments

America's Biggest Brands Lock AI Out

https://www.clicksdynasty.com/big-brand-ai-crawler-study.html
1•ravinder_cheema•4m ago•0 comments

APX Forth: A Surprise

https://www.goto10retro.com/p/apx-forth-a-surprise
2•wslh•6m ago•0 comments

Show HN: Claude Code spinner verbs reflect the model (Haiku: Licking screen..)

https://github.com/CharlesSS07/claude-model-spinners
1•spaghettio•6m ago•0 comments

What the iPhone Duo means for web development (and Video.js)

https://videojs.org/blog/iphone-duo-web-development
2•dardarbinks•9m ago•0 comments

Designing a local model harness optimized for MCP use

https://portlandaiworks.com/articles/local-model-harness-for-mcp
1•alviso•9m ago•0 comments

The Deeply Impersonal Personalized Recruiter Mail

https://blog.pentlander.com/the-deeply-impersonal-personalized-recruiter-mail/
4•speckx•9m ago•0 comments

2026 Usage Policy Update

https://www.anthropic.com/news/2026-usage-policy-update
3•surprisetalk•10m ago•1 comments

Show HN: AI SRE Arena, an Open Benchmark for AI SRE Agents on Kubernetes

https://github.com/edgedelta/project-arena
1•emrahsamdan•12m ago•0 comments

Soaring Instrument Prices Could Stop the Music at Many Schools

https://www.nytimes.com/2026/10/02/business/economy/tariffs-instruments-school-music-programs.html
1•bookofjoe•13m ago•1 comments

Show HN: TikStory – View public TikTok Stories without signing in

https://tikstory.net/
1•likaibinyoon•14m ago•0 comments

Steam Beta Now Defaults Non-Steam Windows Binaries to Using Proton

https://www.phoronix.com/news/Steam-Beta-Use-Proton-Default
2•Alephinitesimal•15m ago•0 comments

The Download: AI roadblocks for humanoids and portable rubber dams

https://www.technologyreview.com/2026/10/08/1146045/the-download-ai-roadblocks-humanoids-portable...
2•joozio•15m ago•0 comments

Order of the Sinking Star

https://store.steampowered.com/app/499170/Order_of_the_Sinking_Star/
1•superdisk•17m ago•0 comments

Akhetonics Photonic Computing: 1,000x Faster CPUs

https://medium.com/@timventura/akhetonics-photonic-computing-1-000x-faster-cpus-b9e91c470079
1•peter_d_sherman•17m ago•0 comments

Anthropic bans 'abusive or cruel behavior' towards Claude

https://www.theverge.com/ai-artificial-intelligence/1008100/anthropic-new-usage-policy-abuse-claude
16•mikelgan•17m ago•12 comments

Ask HN: What happened with quantum computers anyway?

1•pera•19m ago•0 comments

Cleer Dashboard – How much energy⇄ does AI inference use?

https://cleerdash.sustainableaigroup.com/
1•giuliomagnifico•21m ago•0 comments

XPCH Publisher Danielle Lambert

https://x.com/i/chat/1741875783990378497-1859817379058126849/info
1•treasure2seek•21m ago•0 comments

A Cruise and a Starship: SpaceX Used Bystander Videos to Track Explosion Debris

https://www.propublica.org/article/spacex-starship-caribbean-explosion-report
5•hn_acker•24m ago•1 comments

What I've Been Reading

https://marginalrevolution.com/marginalrevolution/2026/10/what-ive-been-reading-296.html
1•paulpauper•25m ago•0 comments

Whistle: Speech to Text in 16.9 MB

https://cactuscompute.com/blog/whistle
31•gmays•26m ago•2 comments

OpenAI mathematics papers have no correspondence address

https://mathoverflow.net/questions/515845/how-can-one-contact-the-authors-of-openais-october-2026...
5•jjgreen•27m ago•1 comments

Comprehension Audits to Mitigate Risks from Automated AI Research

https://arxiv.org/abs/2610.10064
3•ronbodkin•27m ago•0 comments

EEAS runs scared of US 'disinformation' debate

https://www.rapporteur.com/news/eeas-runs-scared-of-us-disinformation-debate/
3•hn_acker•29m ago•0 comments

Give Your Agent Context Before You Buy an AI SRE

https://radarhq.io/blog/ai-sre-give-your-agent-context-first
2•royLsky•29m ago•0 comments