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.

Revenge of the nerds: How data scientists catch fraudsters

https://medium.com/fourthline-tech/revenge-of-the-nerds-how-data-scientists-catch-fraudsters-part...
1•Doch88•1m ago•0 comments

Your Package Manager Is Lying to You

https://blog.gaborkoos.com/posts/2026-06-11-Your-Package-Manager-Is-Lying-to-You/
1•theanonymousone•4m ago•0 comments

Show HN: Aegis – post-quantum cyberdefense proxy (687 attacks, 0 breaches, 40d)

https://github.com/conchaestradamiguelangel-droid/aegis
1•conchaestrada•6m ago•0 comments

Phantomix – Open-source browser AI agent, free alternative to OpenAI Operator

https://github.com/dimitrisdimitrov5-blip/Phantomix
2•michoni12•6m ago•0 comments

Macaroni – a single HTML file messenger

https://github.com/vanyapr/makaroshki
2•snowflaxxx•8m ago•0 comments

I got inside a North Korean hiring scam

https://indicator.media/p/i-got-inside-a-north-korean-hiring-scam-what-i-found-reveals-a-troublin...
1•jruohonen•9m ago•0 comments

Ask HN: Want to build something open source on nights and weekends together?

1•vira28•10m ago•0 comments

Show HN: NightCity Tracer is an open-source Blue Team Simulator

https://thomassimmer.github.io/nightcity-tracer/
1•thomassimmer•11m ago•0 comments

Gordon Wood's Proust

https://thelampmagazine.com/blog/gordon-woods-proust
1•prismatic•12m ago•0 comments

Cybercriminals claim breach of Oracle PeopleSoft servers at 100 organizations

https://techcrunch.com/2026/06/10/cybercriminals-claim-breach-of-oracle-peoplesoft-servers-at-100...
2•ameypandey•12m ago•0 comments

The AI Resist List

https://airesistlist.org/
1•jruohonen•14m ago•0 comments

XY

https://nsl.com/k/xy/xy.txt
1•tosh•18m ago•0 comments

The Jqwik Anti-AI Affair

https://blog.johanneslink.net/2026/06/09/the-jqwik-anti-ai-affair/
1•xyzal•19m ago•0 comments

Knowledge Collapse: AI companies are racing to mechanize mathematics

https://www.bostonreview.net/articles/knowledge-collapse/
3•Hooke•20m ago•0 comments

AI researcher claims he's bypassed Anthropic's Fable 5 guardrails

https://cointelegraph.com/news/researcher-claims-hes-already-jailbroken-anthropics-guardrailed-cl...
2•bushwart•22m ago•0 comments

Show HN: AI Coloring Page Generator – printable worksheets from prompts

https://aicoloringpagegenerator.org/
1•robot1996•22m ago•0 comments

Is It AI? How to Tell Using Metadata

https://photoinvestigator.co/blog/how-to-tell-if-a-photo-is-ai-generated-metadata/
1•Danbana•24m ago•0 comments

Open-source Next.js salon booking template, built on Opencals booking API

https://www.indiehackers.com/post/open-source-next-js-salon-booking-template-built-on-opencals-bo...
1•stangineer•29m ago•0 comments

FDA OKs first new sunscreen ingredient in more than 25 years

https://apnews.com/article/sunscreen-fda-bemotrizinol-ingredient-uva-protection-9b9c7e04b418b3c9c...
1•XzetaU8•30m ago•0 comments

Overparameterization's Puzzling Success: Lottery Tickets or Escape Dimensions?

https://infoscience.epfl.ch/entities/publication/9a49779b-f9f8-448d-b3d1-737c78455309
1•selimonder•30m ago•0 comments

Elizabeth Warren Asks the SEC to Delay the SpaceX IPO

https://www.businessinsider.com/elizabeth-warren-spacex-ipo-delay-letter-sec-2026-6
5•borski•31m ago•0 comments

Show HN: Dloom – a dotfile manager I wanted

https://swaranga.dev/posts/dloom-the-dotfile-manager-i-wanted/
1•swaranga•33m ago•0 comments

Ask HN: Is anyone shorting the overspend in AI yet?

4•ggm•35m ago•1 comments

Another run at 'More ETFs than stocks in US', and new ones are more expensive

https://plvch.github.io/indexes_cost/
2•plvch•40m ago•0 comments

Show HN: A command-line story machine inspired by Roald Dahl's 1953 short story

https://github.com/skorotkiewicz/grammatizator
2•modinfo•40m ago•0 comments

SlimTide Review: Is Slim Tide Safe for Weight Loss?

https://finance.yahoo.com/sectors/healthcare/articles/slimtide-capsules-updated-warning-2026-1921...
1•haumnary•42m ago•0 comments

Neovim Plugin for Blazingjj

https://opencommit.eu/sejo/blazingjj.nvim
2•sejo•51m ago•1 comments

Valve will stop selling Steam gift cards at retailers over scam concerns

https://www.pcgamer.com/gaming-industry/valve-will-stop-selling-steam-gift-cards-at-retailers-ove...
5•josephcsible•1h ago•0 comments

Just me feeling that Mythos/Fabel just 1% there?

1•punnerud•1h ago•1 comments

Validation, Docs, tests, and database schemas from one source of truth

https://github.com/justhamade/triadjs
3•justhamade•1h ago•1 comments