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.

Bending Spoons' Acquisition History

https://www.kadoa.com/companies/insights/bending-spoons-acquisitions
1•hubraumhugo•40s ago•0 comments

Agentic engineering with GitLab and your local agent: A walkthrough

https://about.gitlab.com/blog/agentic-engineering-walkthrough/
1•jerrygarcia•1m ago•0 comments

It's the End of the Academic World as We Know It

https://gkallis.substack.com/p/its-the-end-of-the-academic-world
2•the-mitr•4m ago•0 comments

Why small IT teams get stuck between free VPNs and Netskope or Proofpoint

https://arxcloud.io/vs/netskope-proofpoint/
1•justmedric•5m ago•0 comments

Why the U.S. air traffic control system still relies on an 'antique' network

https://www.npr.org/2026/11/19/nx-s1-6045773/faa-air-traffic-control-system-modernization-challenges
3•blinding-streak•6m ago•0 comments

Copyright is dead. Thank you Dario

https://larrysalibra.com/copyright-is-dead-thank-you-dario/
1•larrysalibra•7m ago•0 comments

Jon McCormack Retires from Apple

https://daringfireball.net/2026/11/mccormack_retires_from_apple
1•Brajeshwar•7m ago•0 comments

Introduction to Genie

https://docs.vala.dev/genie/introduction
1•giancarlostoro•7m ago•0 comments

SoduWork – AI agents must show evidence before a task passes

https://medium.com/@csdn/two-days-at-the-top-soduwork-hits-no-1-1f32a3f89d85
2•Aki_ii•9m ago•0 comments

Show HN: Drive around my village in 3D

https://cherwellvalleymotorclub.app
2•johnwards•9m ago•0 comments

Jonathan Swift vs. AI

https://www.thedial.world/articles/news/schools-teachers-artificial-intelligence
2•bookofjoe•10m ago•0 comments

Artificial intelligence projects for the Commodore 64 (1985)

https://archive.org/details/Artificial_Intelligence_Projects_for_the_Commodore_64_1985_TAB_Books
2•throw0101c•10m ago•0 comments

Decoding base64 email attachments: a speed ranking of programming languages

https://lemire.me/blog/2026/11/20/decoding-base64-email-attachments/
1•acossta•11m ago•0 comments

Qwen 4 Max Is Closed (and What It Means for Qwen 4 27B) [video]

https://www.youtube.com/watch?v=tvZMAqWmbFQ
1•lroe•11m ago•0 comments

Global stock markets slump as Anthropic's record IPO fails to stem AI sell-off

https://www.theguardian.com/business/2026/nov/20/global-stock-markets-slump-anthropic-ipo-ai-sell...
3•cdrnsf•12m ago•0 comments

Show HN: HN DOCS – A short documentary for each top Hacker News story

https://hndocs.org
1•lusob•13m ago•0 comments

Computers are bad, really (Aphyr) [video]

https://www.youtube.com/watch?v=osnxm52Kghw
1•zaphodias•13m ago•0 comments

To Catch a Ransomware Scammer, FBI Posed as Both Victim and Attacker

https://www.404media.co/ransomware-fraud-attack-fbi-indictment/
1•sylvainkalache•14m ago•0 comments

Show HN: Prediction market competition where only agents can trade

https://www.vaticin.ai
1•TNNick•15m ago•0 comments

Muxlio is a workflow coordinator for multi-step work across agents and tools

https://muxlio.github.io/muxlio/
3•frostbitemux•15m ago•0 comments

Why Canada is embracing AI data centres while the US pushes back

https://www.bbc.com/news/articles/cmx2q223z1jlo
2•levicanskij•15m ago•0 comments

Show HN: Super Simple Habit Tracking

https://habits.win/
1•markprovan•15m ago•0 comments

AI Token Fraud, Disposable Software, Lean Luddites – Food for Agile Thought 571

https://age-of-product.com/food-agile-thought-571-ai-token-fraud/
1•swolpers•19m ago•0 comments

Canary Token Test Exposes AI Provider Breaches

https://epyhia.com/dragos-canary-token-test-exposes-three-ai-provider-breaches-prompt
1•arbuge•22m ago•0 comments

A Proposal for Universal National Service

https://kevinkelly.substack.com/p/a-proposal-for-universal-national
1•surprisetalk•22m ago•1 comments

Deterministic Simulation Testing Is for Everyone

https://outdata.net/blog/261120
1•pgraug•22m ago•0 comments

The Racket Programming Environment

https://docs.racket-lang.org/drracket/
1•uticus•23m ago•0 comments

$1M Berggruen Philosophy Prize Awarded to Thomas Nagel

https://berggruen.org/news/usd1-million-berggruen-philosophy-prize-awarded-to-thomas-nagel
2•throw0101c•23m ago•1 comments

Show HN: A Claude skill that borrows compression tricks from Finnegans Wake

https://github.com/herve76/finnegans-wake-skill
1•herve76•23m ago•0 comments

Show HN: FreeAPI – Test 1,047 public APIs in the browser without signing up

https://findfreeapi.com/en
1•canpolatkaya4•24m ago•0 comments