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.

Show HN: Code Stitcher – Apply any LLM output to your local codebase

1•aihatterer•2m ago•0 comments

The Intelligence Monopoly Is Over. Creating a God's Eye View of the Iran Strikes

https://www.spatialintelligence.ai/p/the-intelligence-monopoly-is-over
1•Bluestein•2m ago•0 comments

RandomAI – A retro split-flap board that routes you to a random AI

https://www.google.com/search?q=https://randomai.chat
1•theaijournalope•8m ago•1 comments

Playing whack-a-mole is losing

https://dadrian.io/blog/posts/whack-a-mole-is-losing/
1•allanbreyes•12m ago•0 comments

Baleba Signs for Manchester United

https://thefinalthirdfootball.blogspot.com/2026/08/thefinalthirdfootball.html
2•Africanway•13m ago•0 comments

AI models flub these intelligence tests. Can you fare any better?

https://www.technologyreview.com/2026/08/26/1141952/puzzles-ai-models-flub-these-tests/
2•joozio•13m ago•0 comments

Quantifying AI data center nitrogen oxide (NOx) emissions from space

https://arxiv.org/abs/2608.22153
1•vintagedave•14m ago•1 comments

Show HN: backpressure.systems adds MCP and CLI

https://backpressure.systems/mcp-and-cli
1•leocardz_•16m ago•0 comments

A spy satellite simulator in the browser, except the data is real

https://github.com/bilawalsidhu/gods-eye-view
1•bauerpl•19m ago•0 comments

Adaptable Engineers Hold Key Skills in the AI Era

https://spectrum.ieee.org/adaptable-engineer-core-skills
2•rbanffy•26m ago•0 comments

The journalist facing an $800 daily fine to keep her sources secret

https://www.theguardian.com/media/ng-interactive/2026/aug/25/catherine-herridge-journalist-suprem...
11•geox•27m ago•1 comments

As CTE Cases Soar, Why Do Football Crowds Still Go Wild?

https://www.nytimes.com/2026/08/26/us/nfl-cte.html
1•JumpCrisscross•28m ago•0 comments

Show HN: I have feelings about my tasks

https://taskroom.autobirds.com/
2•eyalgoren•28m ago•0 comments

Adding CPU affinity in a 24-core build machine made builds take longer

https://infosec.exchange/@david_chisnall/117156204452541109
2•birdculture•28m ago•0 comments

Ukraine's Most Potent Weapon: The Software Orchestrating Its Drone Army

https://www.nytimes.com/2026/08/26/world/europe/ukraine-delta-battlefield-management.html
2•0in•30m ago•0 comments

U.S. gov't moves to suppress pushback on data centers

https://www.tomshardware.com/tech-industry/data-centers/u-s-govt-moves-to-suppress-pushback-on-da...
29•rbanffy•31m ago•5 comments

Vulnerability researchers were repeatedly targeted by trojanised exploits

https://www.sekoia.com/blog/dont-eat-the-chocopocs-how-vulnerability-researchers-were-repeatedly-...
1•hacb•33m ago•0 comments

PyCharm and Django Fall Fundraiser

https://www.djangoproject.com/weblog/2026/aug/25/pycharm-django-fall-fundraiser/
1•lumpa•33m ago•0 comments

Mark Zuckerberg had a bold plan to replace Meta staff with AI

https://www.reuters.com/investigations/mark-zuckerberg-had-bold-plan-replace-meta-staff-with-ai-h...
8•T-zex•35m ago•0 comments

Show HN: Exit planning guidance for private company owners

https://nextgenseller.com/
1•not_wowinter14•35m ago•0 comments

Relm4 makes developing beautiful cross-platform applications idiomatic

https://relm4.org/
1•Bluestein•37m ago•0 comments

Universal Blue is a manufacturing process focusing on community-driven sharing

https://universal-blue.org/
1•Bluestein•43m ago•0 comments

Debian polls its developers on AI: permit or ban?

https://www.theregister.com/ai-and-ml/2026/08/26/debian-polls-its-developers-on-whether-to-burn-t...
6•lproven•44m ago•2 comments

My typical Niri setup and workspace organization

https://community.latenode.com/t/my-typical-niri-setup-and-workspace-organization/31587
1•Bluestein•45m ago•0 comments

Bill Gates was an AI optimist. Now he's scared of what could go wrong

https://www.washingtonpost.com/technology/2026/08/26/bill-gates-says-he-worried-ai-will-harm-work...
1•voxleone•46m ago•0 comments

France to ease strict rules on iconic cheeses as heat dries pastures

https://www.france24.com/en/france/20260826-france-eases-cow-diets-as-cheesemakers-sweat
2•bookofjoe•47m ago•0 comments

'It seems crazy': SpaceX's orbital data centre bet tests physics and finance

https://www.ft.com/content/41e60b41-5f13-4d72-8dfc-9bab83f57fb3
1•doener•47m ago•0 comments

The choices we make about AI now are critical – Bill Gates

https://www.gatesnotes.com/work/make-ai-work-for-everyone/reader/a-turbulent-ai-era-and-critical-...
2•stareatgoats•47m ago•0 comments

Rainbow Six Tactics announced with single-player turn-based combat

https://www.notebookcheck.net/Rainbow-Six-Tactics-announced-with-single-player-turn-based-combat....
1•DarrylLinington•49m ago•0 comments

The Feeling of Power (Asimov, 1958)

https://archive.org/details/1958-02_IF
9•irdc•50m ago•1 comments