frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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•8mo 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•8mo 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•8mo 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.

Boundary Enforcement in Code Review

1•mthssalome•2m ago•0 comments

Owners, not renters: Mozilla's open source AI strategy

https://blog.mozilla.org/en/mozilla/mozilla-open-source-ai-strategy/
1•nalinidash•3m ago•0 comments

Show HN: Janus – Anki flashcards from PDFs, videos and notes

https://janus.cards
1•A-F-V16•3m ago•1 comments

$999 RTX 5090 GPU scam claims 42 victims

https://www.tomshardware.com/pc-components/gpus/usd999-rtx-5090-gpu-scam-claims-42-victims-fanny-...
1•croes•3m ago•0 comments

People as Harmonic Oscillators

https://dogdogfish.com/blog/2026/01/13/people-as-oscillators/
1•matthewsharpe3•10m ago•1 comments

Hit squad recruiter for Sweden's Foxtrot criminal network arrested in Iraq

https://www.thenationalnews.com/news/mena/2026/01/13/hit-squad-recruiter-for-swedens-foxtrot-crim...
1•campuscodi•11m ago•0 comments

Show HN: MakersHub.dev – A community platform for people building with AI tools

https://makershub.dev/
1•adilmoujahid•12m ago•0 comments

Show HN: FreeMarker Support for Zed Editor

https://github.com/debba/zed-freemarker
1•debba•13m ago•0 comments

Ask HN: Quantum Computation, Computers and Programming

1•rramadass•15m ago•0 comments

Show HN: Policy-governed AI system for offline deployment in expertise deserts

https://github.com/thepoorsatitagain/Tutor-to-disaster-expert
1•thepoors•16m ago•0 comments

Podshop, the hedge fund game. As seen on Bloomberg's money stuff

https://www.podshop.io
1•WiseHare•16m ago•0 comments

Could Magic Mushrooms Have 'Woken Up' Our Ancestors?

https://thesporereport.com/?p=580
1•richrichardsson•17m ago•0 comments

WebUSB Unpinner: network analysis for the masses

https://reversing.works/posts/2025/12/webusb-unpinner-network-analysis-for-the-masses/
1•chobeat•18m ago•0 comments

Show HN: High-precision mouse polling rate tester

https://mousepollingratetest.com/
1•zylics•21m ago•1 comments

User authorization just got 10x harder

https://leaddev.com/event/user-authorization-just-got-10x-harder
2•mooreds•21m ago•0 comments

Ask HN: Infrastructure teams – what's your biggest compliance headache?

1•coppinfra•24m ago•0 comments

Iran official says 2k people have been killed in unrest

https://www.reuters.com/world/china/iranian-mp-warns-greater-unrest-urging-government-address-gri...
5•JumpCrisscross•24m ago•2 comments

Dullness and Disbelief: The 2026 AI Regression

https://vibesbench.substack.com/p/dullness-and-disbelief-the-2026-ai
2•firasd•24m ago•0 comments

Show HN: Fruito – match-3 puzzle game I made with Claude Code

https://fruito.sawirstudio.com/
1•sawirricardo•25m ago•1 comments

The World Has a New Lowest Birth Rate Country: Taiwan at 0.72

https://www.taipeitimes.com/News/front/archives/2026/01/10/2003850357
1•cwwc•26m ago•0 comments

Is Elon Musk the Worst in Tech?

https://aiweekly.co/issues/459
1•treadump•28m ago•2 comments

DoorDash and Pizza Arbitrage (2020)

https://www.readmargins.com/p/doordash-and-pizza-arbitrage
1•timvdalen•28m ago•0 comments

Docker just made their hardened images free and open source

https://twitter.com/BetterStackHQ/status/2011011753136517126
1•landsman•28m ago•0 comments

Thirteen Months That Changed IBM

https://newsroom.ibm.com/Thirteen-Months-That-Changed-IBM
2•vednig•29m ago•0 comments

Using the Physics of Radio Waves to Empower Smarter Edge Devices

https://pratt.duke.edu/news/using-the-physics-of-radio-waves-to-empower-smarter-edge-devices/
1•wjSgoWPm5bWAhXB•31m ago•0 comments

Facebook login thieves now using browser-in-browser trick

https://www.bleepingcomputer.com/news/security/facebook-login-thieves-now-using-browser-in-browse...
1•7777777phil•31m ago•0 comments

Why Is Everyone Suddenly Talking About Putting Data Centers in Space?

https://theintercept.com/2026/01/12/data-centers-space-ai/
2•Qem•32m ago•0 comments

The value of random zero-sum games

https://arxiv.org/abs/2601.07759
2•7777777phil•32m ago•0 comments

How General Counsel Can Operationalise AIVO Inside Legal Workflows

https://www.aivojournal.org/how-general-counsel-can-operationalise-aivo-inside-legal-workflows/
1•businessmate•32m ago•1 comments

What's the deepest modern book on forecasting? (I wrote one)

https://valeman.gumroad.com/l/MasteringModernTimeSeriesForecasting
1•predict_addict•33m ago•1 comments