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.

LibreWolf: A custom version of Firefox, focused on privacy, security and freedom

https://librewolf.net/
1•pretext•1m ago•0 comments

Explainer: Three Israelis considered for Nvidia CEO role

https://www.jpost.com/business-and-innovation/tech-and-start-ups/article-914815
2•10xDev•2m ago•0 comments

Turn Discord support threads into an FAQ for agents

https://cocoindex.io/blogs/discord-support-faq/
1•jerryrqu•3m ago•0 comments

Exact Gradients Through a BRep Kernel

https://muni.works/research/vcad
1•ecto•4m ago•0 comments

Emerging International Best Practices for AI Model Specs

https://saif.org/research/model-specs/
1•pretext•4m ago•0 comments

Jensen Huang's Resignation from Nvidia Worries the A.I. Startup World

https://www.nytimes.com/2026/11/13/technology/jensen-huang-silicon-valley-start-ups.html
2•cdrnsf•4m ago•0 comments

Ctrl+C, Ctrl+v, Ctrl+cve: Bypassing Android's Clipboard Read Security Measures

https://toninoble.com/post/ctrlc-ctrlv-ctrlcve
1•dethmasque•5m ago•0 comments

I measured what each agent-built pull request costs (~$2.15)

https://github.com/sebwilgosz/agent-executor
1•sebwilgosz•7m ago•0 comments

Acceleration of clean energy needed for global CO2 emissions to peak and decline

https://www.nature.com/articles/s41558-026-02821-8
1•toomuchtodo•7m ago•1 comments

Show HN: I simulated typewriters from 1926, 1970, and a 1980 IBM DisplayWriter

https://typewriter.foxipso.com
1•IAmNotACellist•8m ago•0 comments

Rogue AI Deployments Are Probably Coming [video]

https://www.youtube.com/shorts/Pnn5ZrQ7fFo
1•deepserket•9m ago•1 comments

It Takes 16 Clicks for a Student to Open a PowerPoint on an iPad

https://www.reddit.com/r/Teachers/comments/1xuup7a/technology_sucks_it_literally_takes_16_clicks_...
2•BobaFloutist•10m ago•0 comments

OpenAI launches ChatGPT Wallet, AI agents pay for purchases

https://www.reuters.com/technology/openai-launches-chatgpt-wallet-letting-ai-agents-pay-purchases...
5•NeuraCryption•11m ago•1 comments

Are we just going to ignore that books are destroyed for AI?

https://www.forbes.com/sites/maryroeloffs/2026/08/17/ai-companies-are-buying-and-destroying-antiq...
4•nyxtom•14m ago•4 comments

Anthropic sued for trademark infringement over 'Mythos' model

https://www.reuters.com/legal/legalindustry/anthropic-sued-trademark-infringement-over-mythos-mod...
1•giuliomagnifico•15m ago•0 comments

Forge is now in AWS marketplace

https://docs.trycontinuum.ai/forge/overview
1•continuum-agy•15m ago•0 comments

Show HN: CtxWise – Stop 8MB MCP crashes, schema bloat, and cache misses

https://github.com/FramY2/ctxwise
2•framy2•16m ago•0 comments

Platonic representations in the visual cortex: 4 gaps

https://www.neuroai.science/p/platonic-representations-in-visual
2•pminimax•16m ago•0 comments

The true fragility of the semiconductor supply chain

https://haddyalchaer.com/supply-chain
2•halcdev•16m ago•1 comments

Tell HN: Rachelbythebay.com Went Dark

https://rachelbythebay.com/
1•ucirello•16m ago•1 comments

Is it OK to write blog posts with AI yet?

https://rmoff.net/2026/11/13/is-it-ok-to-write-blog-posts-with-ai-yet/
2•speckx•18m ago•3 comments

Serve Robotics Opens Its Robot Delivery Network for Anyone to Build On

https://investors.serverobotics.com/news-releases/news-release-details/serve-robotics-opens-its-r...
2•skyya•18m ago•0 comments

Frontier AI takes only months to get 10 times cheaper

https://village.dev/blog/frontier-ai-used-to-take-over-a-year-to-get-10-times-cheaper-now-it-take...
1•kevin_hu•19m ago•1 comments

Cyber Insecurity: The Cost of Monopoly [pdf] [2003]

https://web.archive.org/web/20030926024100/https://ccianet.org/papers/cyberinsecurity.pdf
1•OhMeadhbh•19m ago•1 comments

LM Studio vs. Ollama on Linux: same model files, measured on an RTX 3090

https://homebrewserver.club/lm-studio-vs-ollama.html
3•aidotguru•20m ago•0 comments

Show HN: AI Juggler – Orchestrate your desktop Claude and Codex apps

https://github.com/figurehead-ai/AI-juggler
2•fbrbovic•22m ago•1 comments

Scientists Discover First New Penguin Species in More Than 100 Years

https://www.sciencedaily.com/releases/2026/09/260920222410.htm
1•karakoram•22m ago•0 comments

Creatine, Debunked [video]

https://www.youtube.com/watch?v=uK_1UiwTANw
1•luispa•25m ago•0 comments

OpenTelemetry for Balatro

https://svrnm.com/blog/balatro-otel/
2•svrnm•25m ago•0 comments

Soviet Disunion - Why Did The Communist Regime Collapse In The Soviet Union?

https://worksinprogress.co/issue/soviet-disunion/
2•karakoram•26m ago•0 comments