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.

Made a video game portfolio website

https://www.samgdf.com/
1•samgdf2•27s ago•0 comments

Show HN: I restored Palm's last device, and brought its OS to other platforms

https://www.webosarchive.org/pivot/2026/11/27/the-story-so-far/
1•codepoet80•1m ago•0 comments

TryBrake

https://trybrake.com
1•Elie_Amar•2m ago•0 comments

Claude Code running on Gameboy color, advance, 3ds, ps vita

https://jamesbrine.com.au/wire-chat-game-boy-color-pong/
1•referefref•3m ago•1 comments

Our AI QA agent on Momentic's open QA Bench, with every run and verdict

https://github.com/pluswithai/qa-bench-results
1•pluswithai•7m ago•0 comments

AI is straining America's open records systems

https://www.technologyreview.com/2026/11/25/1149702/ai-is-straining-americas-open-records-systems/
1•jonbaer•8m ago•0 comments

Show HN: Wots – restaurant recommendations from people with your taste

https://wots.io/
1•riverdweller•8m ago•0 comments

Rayshader 1.0

https://www.tylermw.com/posts/rayverse/rayshader-1-0-exit-the-matrix.html
1•tylermw•8m ago•0 comments

Menutr: My favorite network condition diagnostic tool, now in your menu bar

https://davepedu.com/blog/2026/11/25/menutr/
1•dpedu•10m ago•0 comments

AI Success Factors – Food for Agile Thought 572

https://age-of-product.com/food-agile-thought-572-ai-success-factors/
1•swolpers•10m ago•0 comments

Show HN: Place AI and math breakthroughs on a timeline vs. Scott Aaronson

https://youraitimelines.com/
1•ap11071•10m ago•0 comments

Show HN: Clacketier – Cherry MX sounds for any macOS terminal

https://twitter.com/vipulgupta2048/status/2126313196743266511
1•vipulgupta2048_•12m ago•0 comments

How to stop Hisense smart TVs from spying on you

https://www.techspot.com/news/114709-here-how-stop-hisense-tvs-spying-you.html
1•Brajeshwar•12m ago•0 comments

The Deadly Problem the Car Industry Can't Solve: Holdouts Who Won't Buckle Up

https://www.wsj.com/business/autos/seat-belt-use-car-crash-fatalities-141a7f9a
1•bookofjoe•13m ago•1 comments

PEP 671 – Syntax for late-bound function argument defaults

https://peps.python.org/pep-0671/
1•theanonymousone•14m ago•0 comments

Show HN: A Christmas question a day, answered verbatim from scripture

https://trysojourn.app/
1•jmathai•14m ago•0 comments

What defenders need to know about agentic AI framework ARTEX threat actors abuse

https://www.microsoft.com/en-us/security/blog/2026/11/25/what-defenders-need-to-know-artex-agenti...
1•croes•15m ago•0 comments

Nvidia Blackwell Chips Turn Up at China Site Tied to Alice Huang

https://finance.yahoo.com/technology/articles/nvidia-blackwell-chips-turn-china-114546617.html
1•mgh2•16m ago•0 comments

Anthropic sponsors 178 (133 D, 45 R) House members, which is 41%

https://x.com/KimChiSpicey/status/2125775831276679216
1•MrBuddyCasino•17m ago•0 comments

What ten years as a retail investor taught me, and how AI helped me test it

https://horatiothomas.com/blog/investing-rules-backtest
1•horatio_thomas•17m ago•2 comments

Anthropic loses Monzo co-founder Tom Blomfield weeks after its $83 IPO

https://techfundingnews.com/tom-blomfield-reportedly-leaves-anthropic-six-months/
1•mgh2•18m ago•0 comments

Costa Rica bars UN rapporteur Francesca Albanese amid push for Israel trade deal

https://www.intellinews.com/costa-rica-bars-un-rapporteur-francesca-albanese-amid-push-for-israel...
1•lehi•19m ago•0 comments

Needles, Haystacks, and Numbers Between 0 and 1

https://rustfoundation.org/media/needles-haystacks-and-numbers-between-0-and-1/
1•madsmtm•19m ago•0 comments

Airline Norse Atlantic's Norwegian operating unit declares bankruptcy

https://www.reuters.com/legal/litigation/airline-norse-atlantics-norwegian-operating-unit-declare...
2•theanonymousone•20m ago•0 comments

Riemann, Primes and Problems

https://read.misalignedmag.com/riemann-primes-and-problems-4ee950c475e3
1•lcubw•22m ago•1 comments

Commercial Seed License

https://github.com/Merkoba/CSL/blob/main/csl_v1.md
2•madprops•22m ago•0 comments

QEMU/Unicorn emulator and RAM-only mods for Sony BIONZ X cameras

https://github.com/ivica00/bionz-x-research
1•ivica00•23m ago•0 comments

Show HN: Woodada – Cats that run across your taskbar as your CPU gets busy

https://github.com/Hyuntae-Jeong/Woodada
1•latissi•24m ago•0 comments

Torqwave – Open-source C++20/JUCE spectral audio editor and DAW (AGPL-3.0)

https://github.com/BobClawblaw/torqwave
1•hjm•28m ago•1 comments

Norse Atlantic suspends all flights as it faces potential collapse

https://www.bbc.com/news/articles/c9kgmd0ldy0lo
5•theanonymousone•29m ago•4 comments