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

Samsung: It's Time for Floating Data Centers

https://datacenterrichness.substack.com/p/samsung-its-time-for-floating-data
2•rbanffy•2m ago•0 comments

How to Build Institution-Grade Yield Curves and Volatility Surfaces

https://medium.com/@DolphinDB_Inc/the-hidden-foundation-of-pricing-and-risk-how-ficc-curves-and-s...
1•CrazyTomato•2m ago•0 comments

Qwen3.7-Max Ran for 35 Hours on Unknown Hardware and Achieved a 10× Speedup

https://firethering.com/alibaba-qwen3-7-max-autonomous-agent/
1•steveharing1•2m ago•0 comments

Golomb Coding

https://en.wikipedia.org/wiki/Golomb_coding
1•tosh•4m ago•0 comments

Show HN: Geomatic – a command-driven geometry studio enabled with autodiff

https://www.tinyvolt.com/geomatic
2•nivter•7m ago•2 comments

Uvora Growth OS – AI marketing automation and lead generation platform

https://growth.uvora.cloud
1•ghcosmin•9m ago•0 comments

Brain motion is driven by mechanical coupling with the abdomen

https://www.nature.com/articles/s41593-026-02279-z
1•lentoutcry•13m ago•0 comments

Light pollution is washing out the sky. A remote telescope farm helps stargazers

https://www.google.com/url?q=https://www.cbsnews.com/news/starfront-observatories-light-pollution...
1•Michelangelo11•14m ago•0 comments

Show HN: SenseCollect – Web data extraction made simple

https://sensecollect.com
1•chrislxy•15m ago•0 comments

Nous: Offline Duolingo Style app for maths, science and humanities

https://play.google.com/store/apps/details?id=com.mathvoyager.app&hl=en_US
2•flirp•16m ago•1 comments

IMAX Is for a Sale

https://www.cnbc.com/2026/05/22/imax-sale-talks-potential-buyers-wall-street-analysts.html
1•mgh2•17m ago•0 comments

Bringer Tech

https://bringer.tech
1•amirwayne•17m ago•0 comments

Finding Security Bugs in OSS with LLMs on a Budget

https://www.etive-mor.com/blog/carlini-style-vulnerability-hunting-on-a-budget/
1•liamlaverty•18m ago•1 comments

Ask HN: Bitwarden Rejecting Master Password?

1•esquivalience•22m ago•0 comments

Wellness Peptide Craze

https://www.bbc.com/news/articles/cdr268m5pxro
1•andsoitis•24m ago•0 comments

Using design patterns to encode expert judgement for LLM workflows

https://papers.ssrn.com/sol3/papers.cfm?abstract_id=6723919
1•Jackal08•26m ago•0 comments

LLMs Locally With a CPU? I Tested 8 Models on Linux

https://itsfoss.com/testing-local-llms-without-gpu/
2•hochmartinez•26m ago•0 comments

Almost always look on the bright side of life

https://economist.com/business/2026/05/21/why-you-should-almost-always-look-on-the-bright-side-of...
1•andsoitis•36m ago•1 comments

Stop Doing Easy Things

https://xendo.bearblog.dev/stop-doing-easy-things/
2•xendo•39m ago•0 comments

The Essential Cloud for AI: Why Purpose-Built Defines the Future of Intelligence

https://www.coreweave.com/blog/the-essential-cloud-for-ai-why-purpose-built-defines-the-future-of...
1•janandonly•40m ago•0 comments

Show HN: IA-SQL – Postgres compiles your documents into a wiki with an LLM

https://github.com/feers77/iasql
1•feers77•41m ago•0 comments

The EU's Big Tech law was meant to move fast. It hasn't

https://www.politico.eu/article/eu-big-tech-law-meant-to-move-fast-it-hasnt/
2•miohtama•46m ago•0 comments

Modal's Series C: Raising $355M at a $4.65B valuation

https://modal.com/blog/modal-series-c
1•yla92•48m ago•0 comments

A simple clustering algorithm for lists

https://cassidoo.co/post/clustering-tiles/
1•cassidoo•50m ago•0 comments

Ilma, a Navtex Receiver for Raspberry Pi

https://code.sailorslog.io/blog/2026-05-06-ilma-navtex-decoder/
1•sailingcode•55m ago•1 comments

Concerning the National Information Technology Authority Bill, 2025

https://medium.com/sort-of-like-a-tech-diary/concerning-the-national-information-technology-autho...
1•wsgeorge•57m ago•0 comments

Supercharging Claude Code with the Right (CLI) Tools

https://batsov.com/articles/2026/02/17/supercharging-claude-code-with-the-right-tools/
2•fagnerbrack•58m ago•0 comments

The Perfect Code Review: How to Reduce Cognitive Load While Improving Quality

https://bastrich.tech/perfect-code-review/
1•fagnerbrack•58m ago•0 comments

Leaving Performance on the Table

https://fzakaria.com/2026/05/23/leaving-performance-on-the-table
2•ingve•1h ago•0 comments

Individual Logarithm Reduction Step of Discrete Logarithm Problem

https://leetarxiv.substack.com/p/individual-logarithm-reduction-step
1•birdculture•1h ago•0 comments