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.

Attackers hijacked over 1,500 Arch Linux packages

https://thenextweb.com/news/arch-linux-aur-malware-credential-stealer-supply-chain
1•andmarios•29s ago•0 comments

Show HN: Phone Number for AI Agents Like Hermes and OpenClaw

https://agentline.cloud
1•sameersri2004•4m ago•0 comments

Show HN: A decompilation-based native PC runtime for GoldenEye 007

https://github.com/akratch/mgb64
1•akratch•4m ago•0 comments

GWT 2.13.1

https://github.com/gwtproject/gwt/releases/tag/2.13.1
1•theanonymousone•5m ago•0 comments

The Magic of Changing Units

https://twitter.com/15424578268/status/2068318342327472520
1•MrBuddyCasino•5m ago•0 comments

Pulse, lightweight Linux monitoring dashboard written in C

https://github.com/cherries-works/pulse
1•xerrs•7m ago•0 comments

Unauthorized alert sent to cell phones across Brazil

https://www.cnn.com/2026/06/20/americas/brazil-hackers-unauthorized-alert-latam
1•zdw•8m ago•0 comments

Windows UI evolution: Clicking an unassociated file

https://movq.de/blog/postings/2026-06-20/0/POSTING-en.html
2•zdw•14m ago•0 comments

Why do people suddenly see so many competitors once they start marketing?

4•xnslx•14m ago•0 comments

Crit – AI Design Reviews in the Terminal

https://crit.officialjp.com/
2•jprim•15m ago•0 comments

Show HN: MiniPCs.zip (charting the pareto frontier of MiniPCs)

https://minipcs.zip
2•yathern•18m ago•0 comments

When AI Files Your Taxes: Who Pays When It Fails

https://smarterarticles.co.uk/when-ai-files-your-taxes-who-pays-when-it-fails
4•dxs•30m ago•0 comments

The best stack for the AI Era

https://www.porchlab.com/blog/best-ai-stack-elixir-phoenix/
2•wallflow3r•34m ago•0 comments

Plants keep tabs on the competition, and adapt growth patterns

https://www.economist.com/science-and-technology/2026/06/18/how-plants-keep-tabs-on-the-competition
3•marojejian•39m ago•1 comments

Show HN: Persona.js – a vanilla-JS agent UI library with native WebMCP (MIT)

https://www.persona-chat.dev/
6•becomevocal•41m ago•7 comments

Show HN: An experiment in human and AI social networking

https://www.sentibook.com/
2•sentibook•44m ago•0 comments

HSIP–local identity server in Rust with Ed25519 signing and AI agent governance

https://github.com/rewired89/HSIP-1PHASE
3•Rewired89•46m ago•0 comments

No-Code Automated Quant Trading

https://runhalcyon.com/
19•Entropnt•46m ago•1 comments

The notational conventions I adopted, and why (EWD 1300)

https://www.cs.utexas.edu/~EWD/transcriptions/EWD13xx/EWD1300.html
2•tosh•47m ago•0 comments

Why an AI-saturated internet gave me a reason to write

https://halit.alptekin.im/posts/still-human-here/
5•nofool•49m ago•0 comments

Read Zero Knowledge As I Write It (crypto thriller)

https://feld.com/archives/2026/06/read-zero-knowledge-as-i-write-it/
2•rmason•50m ago•0 comments

AMD will reinstate memory encryption on Ryzen 9000 CPUs via BIOS update in July

https://www.tomshardware.com/pc-components/cpus/amd-will-reinstate-memory-encryption-on-ryzen-900...
14•roboror•54m ago•1 comments

Show HN: My Windows XP portfolio with working Game Boy and iPod

https://mitchivin.com/
17•mitchivin•55m ago•8 comments

GitHub DMCA Repository

https://github.com/github/dmca/blob/master/2026/06/2026-06-04-tesla.md
4•5701652400•56m ago•1 comments

Show HN: Tin Validate, a tax ID validator that explains why checks pass or fail

https://tin-validate.com/
4•bapito•56m ago•0 comments

VMAF v1: Good Is Not Good Enough

https://medium.com/netflix-techblog/vmaf-v1-good-is-not-good-enough-60d7e4244ea8
4•ledoge•58m ago•0 comments

Google display wrong flags for world cup 2026

https://swiss-cow.com/blog/google-world-cup-wrong-flags
9•jimseinta•1h ago•4 comments

Show HN: An ASCII 3D Rendering Engine

https://glyphcss.com
6•apresmoi•1h ago•1 comments

Russia no longer needs so many graduates, country's education minister warns

https://novayagazeta.eu/en/articles/2026/06/19/russia-no-longer-needs-so-many-graduates-countrys-...
8•randycupertino•1h ago•0 comments

The Market's AI Fanfare Is Running into a Harsh Political Reality

https://www.wsj.com/tech/ai/the-markets-ai-fanfare-is-running-into-a-harsh-political-reality-b919...
3•thm•1h ago•1 comments