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.

ThinkPad I9990303 Error Catch-22

https://www.os2museum.com/wp/thinkpad-i9990303-error-catch-22/
1•supermatou•1m ago•1 comments

Pi Durable on Cloudflare

https://earendil.com/posts/pi-durable-on-cloudflare/
1•alexfortin•1m ago•0 comments

Show HN: Panini – a zero-dependency parser for chaotic Indian bank narrations

https://github.com/peopleofproduct/Panini
1•kapil_pawar•1m ago•0 comments

Monthly API credits for Max and Team plans

https://support.claude.com/en/articles/17154008-monthly-api-credits-for-max-and-team-plans
1•akiselev•3m ago•0 comments

Clicks Communicator Companion Phone

https://clicks.tech/communicator
1•gitowiec•4m ago•0 comments

Social media bans are not the answer to protect young people's mental health

https://theconversation.com/can-social-media-bans-protect-young-peoples-mental-health-early-resea...
2•mdp2021•5m ago•1 comments

"Tame" boar and deer are instinctively adapting to the wolf in the Netherlands

https://nos.nl/video/2635315-wildcamera-s-tonen-hoe-zwijnen-en-herten-zich-aanpassen-aan-de-wolf
1•felipevb•7m ago•0 comments

List of Vaporware

https://en.wikipedia.org/wiki/List_of_vaporware
1•geox•8m ago•0 comments

Show HN: Claude Code, deploy using thevibehosting.com == Your app on root Linux

https://thevibehosting.com/
1•ladahrbacek•11m ago•1 comments

Directionally correct bars, a concerning new trend

https://www.junkcharts.com/directionally-correct-bars/
1•theanonymousone•12m ago•0 comments

Is MCP becoming the common foundation of smart, decentralised search?

https://contextetech.com/en/articles/mcp-protocol-smart-decentralised-search
1•contextetech•14m ago•0 comments

Getting Canceled [video]

https://www.youtube.com/watch?v=5zIOfBLQ3U4
1•mpweiher•15m ago•0 comments

No Map: a browser game you walk blind, one tap at a time

https://wawa-nomap.surge.sh
1•ethan_playtest•17m ago•0 comments

Replit is no longer working with Anthropic, CEO says

https://techcrunch.com/2026/10/16/replit-is-no-longer-working-with-anthropic-ceo-says/
1•dgellow•18m ago•0 comments

CobaltC and Rust

https://strawberry9.github.io/the-wrong-memory/Appendix_06.html#rust
1•SilentLambda•21m ago•0 comments

Show HN: CiteLadder – open-source AI search visibility tracker

https://github.com/abhij1306/CiteLadder
1•abhij1306•25m ago•0 comments

If it hurts, do it more

https://jnsgr.uk/2026/09/if-it-hurts-do-it-more
1•Momo_isk•26m ago•0 comments

Chinese phones with built-in malware sold in Africa

https://www.bbc.com/news/technology-53903436
2•sehw•27m ago•0 comments

Aviation superfan installs an Airbus A380 suite in his apartment

https://www.cnn.com/travel/aviation-superfan-a380-etihad-residence-suite
1•Geekette•27m ago•0 comments

Ask HN: Local AI product situation

1•ankurdhama•29m ago•0 comments

Neuralwatt says cache misses can use up to 140% more inference energy

https://runtimewire.com/article/neuralwatt-harness-cache-energy-chad-gibson
1•runtimewire•29m ago•0 comments

People Were Always Shitty

https://notoriousbfg.com/people-were-always-shitty/
1•trwhite•31m ago•0 comments

Show HN: I turned my kids' old Yoto Player into an Audiobookshelf player

https://github.com/tomekent/yotwo
1•beret4breakfast•32m ago•0 comments

Szczecin Paprikash

https://en.wikipedia.org/wiki/Szczecin_paprikash
2•jxub•34m ago•0 comments

DeepSeek-v4.1-Flash-1017 is here

https://twitter.com/deepseek_ai/status/2111375640717033777
7•theanonymousone•36m ago•0 comments

DeepSeek: DeepSeek v4.1 Flash 1017

https://openrouter.ai/deepseek/deepseek-v4.1-flash-1017
33•theanonymousone•37m ago•0 comments

DeepSeek users report a possible v4.1-Flash-1017 refresh across its API

https://runtimewire.com/article/deepseek-users-report-a-possible-v4-1-flash-1017-refresh-across-i...
1•runtimewire•39m ago•0 comments

Galois Finite Fields and the Advanced Encryption Standard (AES)

https://www.cs.uaf.edu/2015/spring/cs463/lecture/03_23_AES.html
1•ankitg12•41m ago•0 comments

Formally verified AES-XTS: The first AES algorithm to join s2n-bignum

https://www.amazon.science/blog/formally-verified-aes-xts-the-first-aes-algorithm-to-join-s2n-bignum
1•ankitg12•43m ago•0 comments

Show HN: CADrs – onshape rust clone

https://github.com/rvdende/cadrs
1•rouanvde•46m ago•1 comments