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.

Ask HN: What do you use for scientific presentations?

1•hamburgererror•3m ago•0 comments

Show HN: UAVs FYI – Drone database with supply chain data, API and CLI

https://www.uavs.fyi/
1•Osoraku•4m ago•0 comments

GLM-5.2: Chop off 84% of the volume from a 1.5TB model, still retain 82% power

https://twitter.com/AYi_AInotes/status/2067642004184383564
3•vantareed•4m ago•1 comments

Claude Artifacts

https://claude.com/blog/artifacts-in-claude-code
2•czeizel•6m ago•0 comments

Show HN: One-click fork of "Everything Claude Code" onto an isolated microVM

https://www.jurniti.com/templates/ecc
1•shving90•8m ago•0 comments

Trillions of dollars spent just to work on customer services?

1•YihaoZhang•9m ago•0 comments

Capitol Alpha Machine – interactive viz of congressional stock trades

https://capitolalpha.app/
1•sylvainbe•13m ago•0 comments

GCP IAM Authorization Bypass

https://olearysec.com/research/config-connector-authorization-bypass/
3•sanbor•13m ago•0 comments

Show HN: Avera – a deterministic check that proves no regression was introduced

https://github.com/tc7kxsszs5-cloud/avera
1•kiku79•13m ago•0 comments

Build yor form back end infrastrture under 30sec

1•unaisshemim•14m ago•1 comments

Elysia Marginata

https://en.wikipedia.org/wiki/Elysia_marginata
1•ZeljkoS•16m ago•1 comments

RemotePower – self-hosted fleet monitoring with built-in vulnerability scanning

https://github.com/tyxak/remotepower
1•tyxak•21m ago•0 comments

Show HN: I was drowning in browser tabs, so I built this

https://microsoftedge.microsoft.com/addons/detail/gopeek/ffaeanmhghmohbponokefmbhfkkomnmk
4•formit34•22m ago•1 comments

Icon.museum – A curated gallery of app icon design

https://icon.museum
1•akashwadhwani35•22m ago•0 comments

Impossible Challenge

https://itch.io/jam/impossible-challenge
1•alisio85•22m ago•0 comments

Terminal-Bench Challenges: long-horizon, token-intensive, single-task benchmarks

https://www.tbench.ai/news/terminal-bench-challenges
1•matt_d•23m ago•0 comments

High-performance code intelligence MCP server

https://github.com/DeusData/codebase-memory-mcp
2•giamma•23m ago•1 comments

Show HN: Redteam:If you are using more than 2 coding agents

https://github.com/AscendyProject/redteam
1•rkdgh19•28m ago•0 comments

Usbliter8 an A12/A13 SecureROM Exploit

https://ps.tc/pages/blog-usbliter8.html
2•Cider9986•30m ago•0 comments

Ukrainian drone makers target Asia as Taiwan tensions spur demand

https://www.reuters.com/world/china/ukrainian-drone-makers-target-asia-taiwan-tensions-spur-deman...
1•JumpCrisscross•30m ago•0 comments

HN with pics – a visual hcker.news reader

https://hn.is-ai-good-yet.com/
1•ilyaizen•35m ago•0 comments

Dana Scott: Lambda Calculus, Forcing and the Foundations of Math: #14 aboutlogic [video]

https://www.youtube.com/watch?v=opLbbZ-_AWE
1•matt_d•37m ago•0 comments

Prodigy: AI Employees

https://docs.google.com/presentation/d/1aldEHGR_1Hv_F0UlTuQIL8mXhsw5s5VzuuPcgKV5czY/edit?usp=sharing
2•samayashar•41m ago•2 comments

We built a status page service on Cloudflare

https://ampliflare.com/blog/status-page-cloudflare-architecture/
1•powerpurple•43m ago•1 comments

I tested Gemma4 12B on my 8GB GPU, now I don't want to go back to smaller models

https://www.xda-developers.com/tested-google-gemma-4-12b-on-8gb-gpu-and-dont-want-to-go-back-to-s...
1•theanonymousone•44m ago•0 comments

Make-work and Sub-subsistence work

https://wilsoniumite.com/2026/06/19/make-work-and-sub-subsistence-work/
1•Wilsoniumite•44m ago•0 comments

'We created a monster': companies rein in AI usage as costs strain budgets

https://www.ft.com/content/1d37cc08-e0aa-45a4-a45d-4ad282529314
2•JumpCrisscross•45m ago•0 comments

One Model Won't Save You: How We Built Our AI Stack

https://www.xelerate.tech/one-model-wont-save-you/
1•pedrocha•47m ago•0 comments

Mantyx – Batteries Included Managed Agent Runtime

https://mantyx.io/
1•mantyx•47m ago•0 comments

Show HN: Write SaaS apps where users control where their data is stored

https://github.com/wolfoo2931/linkedrecords/
1•WolfOliver•53m ago•0 comments