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.

Rhyme-as-Reason Effect

https://en.wikipedia.org/wiki/Rhyme-as-reason_effect
1•epestr•3m ago•0 comments

Show HN: InputConfig, a free open-source app to run your Mac with any controller

https://github.com/ryleighnewman/InputConfig
1•ryleighnewman•5m ago•0 comments

"Peak Greenwashing": Two Bills in Congress Endorse Misleading Recycling Claims

https://www.propublica.org/article/plastics-industry-recycling-legislation-congress
1•hn_acker•7m ago•0 comments

Rockstar is a programming language based on 1980s hard rock lyrics

https://codewithrockstar.com/
1•mooreds•7m ago•0 comments

Utah files criminal charges against Kalshi and its founders under gambling laws

https://www.sltrib.com/news/2026/10/28/utah-files-14-criminal-charges/
1•JumpCrisscross•8m ago•1 comments

Tech Tips for Parents This Digital Parenting Week

https://www.eff.org/deeplinks/2026/10/tech-tips-parents-digital-parenting-week
1•hn_acker•9m ago•0 comments

Patrick Stewart, legendary actor of 'Star Trek' and 'X-Men' fame, dies at 86

https://apnews.com/article/patrick-stewart-dies-8b38054ff74d4187a32158d78e345ad7
1•Bluestein•9m ago•1 comments

Cybernetic Interventions

https://cxix.tiiny.site/
1•shaunxcode•9m ago•0 comments

Building an AI-native engineering org

https://twitter.com/sgondala2/status/2115832070274723875
1•sgondala_ycapp•9m ago•0 comments

The neocloud shakeout is coming, and even the neoclouds seem to know it

https://fortune.com/2026/10/29/elon-musk-neoclouds-ai-bubble-coreweave-nebius-consolidation/
1•angry_impala•9m ago•0 comments

Homosexuality and Psychology

https://en.wikipedia.org/wiki/Homosexuality_and_psychology
1•chistev•11m ago•0 comments

Hunting 'Zombie Accounts' in Active Directory

https://www.fabian.fyi/2026/10/zombie-hunt.html
1•optimiz•11m ago•0 comments

The Streisand Effect Case Might Have Played Out Differently in Germany

https://www.techdirt.com/2026/10/29/the-streisand-effect-case-might-have-played-out-differently-i...
2•hn_acker•12m ago•1 comments

The Illusion of Thinking: Models Don't Actually Reason

https://arxiv.org/abs/2506.06941
2•CGMthrowaway•12m ago•1 comments

Proof by OpenAI of the Existence of Quantum Yang-Mills Theory [pdf]

https://www.kitp.ucsb.edu/sites/default/files/YM_working_group.pdf
2•bananaflag•13m ago•0 comments

Reddit will require you to log in eventually, CEO confirms

https://arstechnica.com/gadgets/2026/10/reddit-will-require-you-to-log-in-eventually-ceo-confirms/
4•canucker2016•13m ago•3 comments

"Human Emacs": Proposal for an Emacs Fork Without LLM Contributions

https://lists.gnu.org/archive/html/emacs-devel/2026-10/msg00508.html
2•untilted•14m ago•0 comments

Why Is AI Bad at Writing?

https://weightythoughts.com/p/why-is-ai-bad-at-writing
1•paulpauper•16m ago•0 comments

Reddit will force users to log in as AI is killing search traffic

https://www.engadget.com/2301687/reddit-will-move-to-logged-in-only-as-ai-eats-search-traffic/
1•kotaKat•16m ago•0 comments

Organizing a kidnap using Apple's personal knowledge graph (and an LLM)

https://8rank.ai/game/apple-intelligence-knowledge-graph-in-the-wrong-hands
2•infwhispers•17m ago•0 comments

AI often makes writing worse. (Even if it makes it better)

https://www.economist.com/britain/2026/09/24/ai-often-makes-writing-worse-even-if-it-makes-it-better
1•paulpauper•18m ago•0 comments

Proton goes all in on using AI

https://convo.casa/@b/117525936178835007
4•ColinWright•18m ago•1 comments

AI Writing Has Entered Its Post-Shame Era

https://www.theatlantic.com/podcasts/2026/09/is-ai-writing-inevitable/688578/
1•paulpauper•18m ago•0 comments

We've Seen This Before Right Before Russia Invaded Ukraine [video]

https://www.youtube.com/watch?v=BsFx3ZZh91U
1•Bender•19m ago•0 comments

El Niño Is Flooding California's Coasts with the Highest Tides to Come

https://gizmodo.com/el-nino-is-already-flooding-californias-coasts-and-the-years-highest-tides-ha...
2•gumby•19m ago•0 comments

LessWrong Sans AI

https://jimrandomh.github.io/LesswrongSansAI/
1•mudil•22m ago•0 comments

For my 80th birthday, I bought myself a new brain

https://bjsm.bmj.com/content/60/9/677
1•convict•23m ago•2 comments

DAO DE JING

https://factsanddetails.com/china/cat3/sub10/entry-5577.html
2•Bluestein•24m ago•0 comments

We ran AI agent swarms in Minecraft and Mindustry

https://labs.ycombinator.com/projects/games/index.html
21•sandslash•27m ago•8 comments

Show HN: KernelCash – Privacy First Budgeting

3•LoftyHobbitMan•28m ago•1 comments