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.

Fossilised red blood cells found in 115M-year-old dinosaur's bone, scientists

https://www.theguardian.com/science/2026/nov/02/fossilised-red-blood-cells-aratasaurus-dinosaurs-...
1•pseudolus•53s ago•0 comments

The state of MCP auth, November 2026: I scanned 25 public servers

https://patchbay-mcp.dev/blog/state-of-mcp-auth-nov-2026
1•GodSmasher•2m ago•0 comments

Trellis: Fractal Window Manager

https://trelliswm.app/
1•surprisetalk•2m ago•0 comments

Railway Caught Hacking Competitor

https://twitter.com/joshmanders/status/2117530391183507484
2•sergiotapia•2m ago•0 comments

Show HN: Run Conway's Game of Life in CSS

https://bucket.svc.moe/uploads/wss/life.html
1•iridis•3m ago•0 comments

Show HN: Isitslop.org: AI Can build anything. Was it worth it?

https://isitslop.org
1•jayjaychicago•3m ago•1 comments

Congress is banning many hemp products in December

https://www.cnn.com/2026/11/03/health/federal-hemp-thc-product-ban-wellness
1•dtagames•3m ago•1 comments

Cloudflare Zero Wire, a hub for investigating critical Internet vulnerabilities

https://blog.cloudflare.com/zero-wire/
1•usrme•4m ago•0 comments

Mexico, the Final Frontier of the Global War on Cash

https://www.nakedcapitalism.com/2026/11/mexico-the-final-frontier-of-the-global-war-on-cash.html
2•iamnothere•6m ago•0 comments

Gefs: A filesystem for plan 9 built on Bε-trees

https://orib.dev/gefs.html
1•thunderbong•6m ago•1 comments

Thermomasculinity; overclocking, tech fair and politics

https://www.siliqoon.com/signals/thermomasculinity/
1•jrgd•6m ago•1 comments

Show HN: Kicklace – Lead follow-up for builders, not marketing experts

https://www.kicklace.com/demo
1•fallguy04•7m ago•0 comments

Just a little AI resistance, as a treat

https://shkspr.mobi/blog/2026/11/just-a-little-ai-resistance-as-a-treat/
1•mooreds•8m ago•0 comments

Show HN: Model Query, declare a JPA DTO projection once, query it many ways

https://github.com/rey5137/model-query
1•rey5137•8m ago•0 comments

Waiter Making 75K in NJ – Bergen County. Where Do I Stand?

https://salary-statistics.netlify.app/us
1•rlatkdrktkd•8m ago•0 comments

Debloatprint – debloat your printer one model at a time

https://github.com/domeniconicoli/debloatprint
1•domeniconicoli•9m ago•0 comments

Your organization as a Graph

https://dunyakirkali.substack.com/p/your-organization-as-a-graph
1•mooreds•10m ago•0 comments

A realistic Liquid Glass effect in pure CSS and SVG

https://studies.nordify.io/study/001-liquid-glass/
1•timurbutt•10m ago•0 comments

Oh, your agents need OAuth2, too

https://stackoverflow.blog/2026/11/03/oh-your-agents-need-oauth2-too/
1•mooreds•10m ago•0 comments

Show HN: APIblaze: Kong and Auth0 and FGA but $0/month

https://www.apiblaze.com
1•jayjaychicago•11m ago•0 comments

Middle-Earth and Silicon Valley

https://www.churchtimes.co.uk/articles/2026/7-august/features/features/middle-earth-and-silicon-v...
2•ButlerianJihad•12m ago•0 comments

Kiosk Satellite

https://github.com/jxlarrea/kiosk-satellite
1•solarist•13m ago•0 comments

Prax, wallet, transfer and sanctions screening as MCP tools for AI agents

https://prax-labs.com/data-services
1•samfayssal•14m ago•0 comments

eMudhra: Free Certificates for Everyone

https://www.feistyduck.com/newsletter/issue_142_emudhra_free_certificates_for_everyone
1•speckx•14m ago•0 comments

Show HN: AllTheStatus, status page central dashboard

https://allthestatus.com/
1•timmahoney•14m ago•0 comments

Anthropic warns that it's close to RSI capability

https://techcrunch.com/2026/11/02/anthropic-warns-that-its-very-close-to-rsi-capability-aka-self-...
3•brandonb•15m ago•0 comments

Show HN: ClickHouse alternative than runs on your Iceberg

https://github.com/pivotlake/pivot
1•dkgs•15m ago•0 comments

Show HN: Track any YouTube title/thumbnail test via WebSub, hashes, and no OAuth

https://scoutyt.com
1•skurtcastle•15m ago•0 comments

Digital Exercise-Based Interventions for Balance in Older Adults (Meta-Analysis)

https://pmc.ncbi.nlm.nih.gov/articles/PMC13717434/
2•chavasorani•17m ago•0 comments

Excessive training alters tyrosine hydroxylase and dopamine homeostasis in mice

https://www.ibroneuroscience.org/article/S0306-4522(26)00535-X/fulltext
1•Noaidi•17m ago•1 comments