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.

Unforgetful

https://marco.org/2026/08/14/unforgetful
1•colinprince•42s ago•0 comments

Nielsen is leaning more on wearables to hear what people are watching

https://www.theverge.com/entertainment/982358/nielsen-ratings-ppm-smart-watch-cowatching-big-data
1•mikelgan•55s ago•1 comments

Trump to host crypto executives as SEC considers regulations

https://www.reuters.com/legal/government/trump-host-crypto-executives-sec-weighs-regulations-2026...
1•tartoran•2m ago•0 comments

AI was supposed to win people over by now – it hasn't

https://techcrunch.com/2026/08/19/ai-was-supposed-to-win-people-over-by-now-it-hasnt/
1•speckx•3m ago•0 comments

Temperature Zero for Culture: Why Everything Is Starting to Look the Same

https://laurenleek.substack.com/p/temperature-zero-for-culture-why
1•_____k•3m ago•0 comments

Show HN: CT RailTime, a better way to travel on CTrail

https://ctrailtime.com/
1•willmeyers•6m ago•0 comments

Sabrix-bench: Fast MCP inspector and agent loop latency profiler in Rust

https://github.com/Pro-Kla/sabrix-bench
1•sabrix•6m ago•0 comments

OpenAI Offering Zero Data Retention for Frontier Models

https://openai.com/index/offering-zero-data-retention-for-frontier-models/
1•7777777phil•6m ago•0 comments

Show HN: I let an AI agent brick my $2.51 ESP32 on purpose

https://github.com/GLechevalier/nff-core
1•akiraysh09•6m ago•0 comments

Waymo Ojai available for all riders in SF, LA, PHX

https://twitter.com/waymo/status/2090142263099773046
3•sdhillon•9m ago•0 comments

Tactical Computer System (1988) [pdf]

https://www.librascopememories.net/Product_Literature_files/Tactical%20Computer%20System.pdf
1•ForHackernews•11m ago•0 comments

Sluggish Schizophrenia

https://en.wikipedia.org/wiki/Sluggish_schizophrenia
1•Cider9986•11m ago•0 comments

The Meal-Kit Industry Is in Disarray After a Major Supplier Went Bust

https://www.wsj.com/business/retail/the-meal-kit-industry-is-in-disarray-after-a-major-supplier-w...
2•thm•11m ago•0 comments

The critical tech staying safe by going underground

https://www.bbc.com/news/articles/c20ydrndr0wo
4•billybuckwheat•12m ago•0 comments

I Launched My Stock

https://twitter.com/koopuluri/status/2090163621099970815
2•koopuluri•12m ago•0 comments

Discord Welcome Bot That Greets Members, Threads and Tickets

https://quickchat.ai/post/discord-welcome-bot-automated-messages
2•piotrgrudzien•12m ago•0 comments

Fuzzy Find Everything

https://alecsargent.codeberg.page/posts/fuzzy-find-everything/
2•ErenayDev•13m ago•0 comments

Effective Apologies Include Six Elements (2016)

https://www.psychologicalscience.org/news/minds-business/effective-apologies-include-six-elements...
2•mooreds•14m ago•0 comments

LV-ROM

https://en.wikipedia.org/wiki/LV-ROM
2•theletterf•14m ago•0 comments

Digital Immortality

https://dogdogfish.com/blog/2026/08/19/digital-immortality/
2•matthewsharpe3•17m ago•0 comments

Pixel 11 Pro Fold feels like the end of an era

https://www.theverge.com/tech/981956/google-pixel-11-pro-fold-review
7•animalcule•18m ago•6 comments

OpenAI 'will be a public company in 2027' or sooner, CFO Friar tells employees

https://www.cnbc.com/2026/08/19/open-ai-ipo-timing-2027-friar.html
4•thm•19m ago•0 comments

Russian Tanks Enter Battle with a New Anti-Drone Active Protection System

https://arstechnica.com/gadgets/2026/08/ukrainian-drones-overwhelm-russian-tanks-new-active-prote...
2•nomilk•20m ago•0 comments

So You Want to Be a Cab Driver? (1999)

https://cultdeadcow.com/cDc_files/cDc-0367.html
3•qifzer•21m ago•1 comments

Unpacking ChatGPT Work: The Agent for a Billion Users

https://www.latent.space/p/unpacking-chatgpt-work
2•gmays•21m ago•0 comments

You Probably Don't Get Why Stripe Bought OpenRouter

https://www.amppublic.com/research/openrouter
3•amrrs•22m ago•0 comments

GitLab founder Sid Sijbrandij describes his osteosarcoma treatments

https://cancerletter.com/guest-editorial/20260814_2/
2•tarr11•22m ago•0 comments

Uncle Bob Might Be Right, but Context Matters

https://twitter.com/unclebobmartin/status/2080257779395154409
3•paretolaw•24m ago•2 comments

Disney sues FCC and its chair, escalating fight against Trump's chief censor

https://arstechnica.com/tech-policy/2026/08/disney-sues-fcc-and-its-chair-escalating-fight-agains...
5•croes•25m ago•0 comments

Putting a Bunny.net CDN in Front of My Static Blog

https://hmmr.online/posts/bunny-cdn-for-a-static-blog/
2•speckx•26m ago•0 comments