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.

Georgi Gerganov on llama.cpp/ggml future after Nvidia acquisition of HuggingFace

https://twitter.com/ggerganov/status/2095897173376618881
1•theanonymousone•3m ago•0 comments

Show HN: NationalDex • minimal open-source Pokédex

https://www.nationaldex.app
1•linesofcode•3m ago•0 comments

UK residents warned to stock up on food due to El Niño

https://www.bbc.co.uk/news/articles/cp931m8n3p5o
1•sarreph•4m ago•0 comments

Typeof Is Lying to You

https://blog.gaborkoos.com/posts/2026-09-04-Your-typeof-Is-Lying-to-You/
1•theanonymousone•4m ago•0 comments

Stop Thinking of LLMs as Next-Token Predictors

https://gmcgoldr.github.io/2026/09/04/llm-next-token-predictors.html
1•garrinm•6m ago•0 comments

Software Is Beginning to Act

https://keydris.com/thesis
1•Osman_728•6m ago•0 comments

Building Meta-AST: Sub-Millisecond Incremental Polyglot Static Analysis in Rust

https://k5602.github.io/#/blog/meta-ast-polyglot-static-analysis
3•viferga•7m ago•0 comments

Jj Jobhunter

https://jj-jobhunter.de
1•guychristiankam•8m ago•0 comments

Is AI ruining my brain?

https://thoughtbot.com/blog/is-ai-ruining-my-brain
1•speckx•8m ago•0 comments

Time Use: King's College vs. Whitman

https://countingfromzero.blog/2026/08/27/time-use-kings-college-vs-whitman/
2•mooreds•11m ago•0 comments

The Download: selling battlefield drone data and AI reshaping language

https://www.technologyreview.com/2026/09/04/1143457/the-download-ukraine-selling-drone-data-ai-re...
3•joozio•14m ago•0 comments

Ringbinder – Lowkey Best Tool for Personal Docs

https://max.engineer/ringbinder
2•hakunin•14m ago•0 comments

Show HN: Ephemerals – Disposable Cloud Dev Environments

https://ephemerals.dev/
2•ishener•15m ago•0 comments

AI Investment and Semiconductor Prices

https://fredblog.stlouisfed.org/2026/06/ai-investment-and-semiconductor-prices/
2•latentframe•15m ago•0 comments

Chromium full chain found by XBOW

https://twitter.com/Xbow/status/2095220385876742456
3•StrauXX•16m ago•0 comments

Blockchain Wishing Well

https://dropasol.com
3•Fallout_cz•16m ago•0 comments

I built free tools that turn sales call notes into proposals

https://inkdraft.io
2•janishd•17m ago•0 comments

Deft: A gradual type system for Janet

https://codeberg.org/zzkt/deft
2•e3bc54b2•18m ago•0 comments

Poland offers businesses seats on presidential plane for foreign visits

https://notesfrompoland.com/2026/09/03/poland-offers-businesses-seats-on-presidential-plane-for-f...
2•santiago-pl•18m ago•0 comments

Show HN: DanTerm – a fast macOS terminal emulator (compare with Ghostty, iTerm2)

https://github.com/danneu/danterm
2•hombre_fatal•20m ago•0 comments

I Street interviewed random people about AI across America

https://www.youtube.com/@charlieguthmann2531
2•cguth7•24m ago•0 comments

Seattle public schools shuts down gifted and talented program

https://nypost.com/2024/04/03/us-news/seattle-public-schools-shuts-down-gifted-and-talented-program/
3•bilsbie•25m ago•2 comments

Abundance in Europe

https://fi-le.net/europe/
3•fi-le•26m ago•0 comments

Adult Film Producer Unmasks Prolific 'John DOE' Torrent Pirate as Meta Executive

https://torrentfreak.com/adult-film-producer-unmasks-prolific-john-doe-torrent-pirate-as-meta-exe...
4•speckx•28m ago•0 comments

Jellyfin Loses Project Leader and Core Team Member (45 day After Leader Departs)

https://linuxiac.com/jellyfin-loses-project-leader-and-core-team-member-in-major-shake-up/
2•WarOnPrivacy•30m ago•1 comments

A Few of Us Investigated OpenAI's Agent Traffic on an Austrian/German Wiki

https://jessicaruan.com/posts/openai-austrian-wiki
2•youngkipper•32m ago•0 comments

Archive a lifetime of email, messages, meetings. Search in ms, offline

https://github.com/kenn-io/msgvault
1•nkmnz•34m ago•1 comments

Why judgment is emerging as cybersecurity's defining skill

https://cyberscoop.com/ai-security-operations-human-context-ciso-op-ed/
1•speckx•35m ago•0 comments

How the Strategic Petroleum Reserve Works

https://www.construction-physics.com/p/how-the-strategic-petroleum-reserve
1•rafaelc•36m ago•0 comments

Play Wow on the Browser

https://play.keldurn.com/
1•wasm__•37m ago•0 comments