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.

The Engineering Book Club Podcast

https://www.engineeringbookclub.com/podcast
1•eustoria•1m ago•0 comments

Turn your site into a place people can bump into each other

https://cauenapier.com/blog/townsquare_release/
1•eustoria•2m ago•0 comments

Fable 5 to return soon according to this "scoop" from axios

https://www.axios.com/2026/06/27/anthropic-fable-5-return-soon
1•jahala•2m ago•0 comments

How Boris Cherny Uses Claude Code

https://howborisusesclaudecode.com
1•eustoria•3m ago•0 comments

ARIA, Anti-Patterns, and You

https://dbushell.com/2026/06/26/aria-anti-patterns-and-you/
1•birdculture•3m ago•0 comments

Post-Quantum Certificates

https://www.netmeister.org/blog/pqc-certs.html
1•ilreb•5m ago•0 comments

Clean GitHub repo tricks AI coding agents into running malware

https://www.bleepingcomputer.com/news/security/clean-github-repo-tricks-ai-coding-agents-into-run...
2•logickkk1•7m ago•0 comments

St. John's College in Annapolis (1948) [pdf]

https://s3.us-east-1.amazonaws.com/sjcdigitalarchives/original/871a997b5240166fb5b004c3871c719c.pdf
2•kmstout•9m ago•0 comments

The Download: introducing the Engineering issue

https://www.technologyreview.com/2026/06/24/1139658/the-download-introducing-engineering-issue/
2•joozio•11m ago•0 comments

Analytic Combinatorics (2009) [pdf]

http://algo.inria.fr/flajolet/Publications/book.pdf
2•turtleyacht•12m ago•0 comments

A free chess trainer where the coach explains your games in plain English

https://coachess.app
2•scoriiu•12m ago•0 comments

You're Not Better Than the Screen Watchers

https://www.speakandregret.michaelinzlicht.com/p/reading-wont-make-you-a-better-person
2•Curiositry•12m ago•0 comments

Find Hacker Houses when they don't show up in a web search

https://hackerhouses.org
2•audreyfei•18m ago•0 comments

OpenAI poaches Uber India chief

https://techcrunch.com/2026/06/26/openai-poaches-uber-india-chief-to-lead-its-biggest-market-outs...
1•ameypandey•20m ago•0 comments

Screen time can damage under-twos' development, landmark study suggests

https://www.theguardian.com/society/2026/jun/27/screen-time-damage-under-twos-development-study
2•Brajeshwar•22m ago•0 comments

The Fishcam – the oldest live camera on the internet (by Netscape)

https://www.fishcam.com/
2•Imustaskforhelp•24m ago•0 comments

A small hardware maker's 8GB of DRAM went from $35 to $300

https://www.cnbc.com/2026/06/27/memory-crunch-shaking-apple-and-microsoft-existential-for-small-g...
2•p_stuart82•24m ago•0 comments

The Illuminated Gospel of Matthew

https://www.cambridge.org/universitypress/bibles/all-titles/illuminated-gospel-matthew
1•ycombinete•25m ago•0 comments

Frame (Artificial Intelligence)

https://rtnf.substack.com/p/frame-artificial-intelligence
1•altilunium•27m ago•0 comments

Dystopian Californian community offers $500 cash reward for Americans to snitch

https://www.dailymail.com/news/article-15927027/san-luis-obispo-county-fireworks-reward-snitch.html
2•Bender•34m ago•3 comments

Ask HN: How to meet and work with likeminded people on the Internet?

1•sarmadgulzar•35m ago•0 comments

Self-proclaimed King of Switzerland uses loophole to build his empire for free

https://www.france24.com/en/europe/20260510-how-switzerland-self-proclaimed-king-built-a-land-emp...
1•mrkn1•36m ago•0 comments

Show HN: A Living Neural Web in HTML5 Canvas

https://techoreon.github.io/verpad/canvas-playground.html
1•guptalog•37m ago•1 comments

AI-Powered Public Comments Are Entering US Climate Politics

https://www.bloomberg.com/news/newsletters/2026-06-27/how-ai-powered-public-comments-could-impact...
2•geox•37m ago•0 comments

Success = (number of attempts) × (probability of success each time)

https://www.thetrueengineer.com/p/success-number-of-attempts-probability
1•adletbalzhanov•39m ago•1 comments

NASA tests AI medic for astronauts too far from Earth to call a doctor

https://www.theregister.com/ai-and-ml/2026/06/27/nasa-tests-ai-medic-for-astronauts-too-far-from-...
1•Bender•40m ago•0 comments

Doctors suspected man had brain cancer. He had worms

https://arstechnica.com/health/2026/06/doctors-suspected-man-had-brain-cancer-he-actually-had-worms/
11•Bender•41m ago•2 comments

Correctness: We build distributed system correct

https://medium.com/@ryankung/correctness-how-we-build-distributed-system-correct-647490cf245b
2•ryankung•42m ago•0 comments

Show HN: Find support for your ProductHunt launch from fellow founders

https://www.launchpact.io
1•launchpact_io•43m ago•0 comments

Meta asks California lawmakers for shield from child harm penalties

https://www.politico.com/news/2026/06/26/exclusive-meta-asks-california-lawmakers-for-shield-from...
2•JumpCrisscross•45m ago•0 comments