frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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•10mo 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•10mo 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•10mo 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.

They won't listen to a word we say (2025)

https://bjr.org.uk/they-wont-listen-to-a-word-we-say/
1•Tomte•1m ago•0 comments

Show HN: Javadecompiler.org – a unified Java decompiler and transformer API

https://javadecompiler.org/
1•nbauma109•1m ago•0 comments

LLMs gave the overconfident colleague an unlimited ceiling

https://medium.com/@groundtruthpost/you-know-that-colleague-who-always-has-an-answer-198e5749237c
1•thefeedbackloop•4m ago•0 comments

Wiki City – 100K Articles by Pageviews

https://wikicity.app/
1•edward•5m ago•0 comments

Oscar Winner List

https://www.bbc.com/news/articles/c33jkvmzl4ko
1•PascalStehling•7m ago•0 comments

Show HN: Spec-Driven Testing for mobile apps (preparing to open source)

https://blogs.finalrun.app/spec-driven-testing-for-mobile-apps-preparing-for-open-source-soon
2•arnold_laishram•11m ago•0 comments

What AI Is Forcing Us to Admit About Talent and Work

https://michaelnovati.substack.com/p/ai-is-about-to-reveal-that-most-of
2•michaelnovati•14m ago•0 comments

Before AI's Kepler Moment – Are LLMs the Epicycles of Intelligence?

https://ashvardanian.com/posts/llm-epicycles/
2•signa11•15m ago•0 comments

Ruthenium prices hit record high as AI boom squeezes supply

https://www.reuters.com/world/africa/ruthenium-prices-hit-record-high-ai-boom-squeezes-supply-202...
2•giuliomagnifico•15m ago•0 comments

Try not to get scammed while looking for work

https://trysound.io/try-not-to-get-scammed-while-looking-for-work/
2•TrySound•32m ago•0 comments

US Job Market Visualizer

https://karpathy.ai/jobs/
4•chizkidd•43m ago•0 comments

Health Effects of Coffee

https://en.wikipedia.org/wiki/Health_effects_of_coffee
2•pinkmuffinere•46m ago•0 comments

Show HN: Port42 – AI companions that build and act on your Mac (v0.5.0)

https://port42.ai/
3•gordonmattey•51m ago•0 comments

TripBoard – Stop scrolling the group chat for that one booking link

https://tripboard.fortheplot.today
2•atharvashembe•55m ago•0 comments

The Agentic Workload

https://opencomputer.dev/blog/the-agentic-workload
1•iacguy•56m ago•0 comments

What Is an Agent Harness?

https://parallel.ai/articles/what-is-an-agent-harness
1•vismit2000•58m ago•0 comments

Solve Toronto

1•basileafe•58m ago•0 comments

FSF threatens Anthropic over infringed copyright: share your LLMs freely

https://news.slashdot.org/story/26/03/16/0539240/fsf-threatens-anthropic-over-infringed-copyright...
4•MilnerRoute•58m ago•0 comments

EU axes AI, semiconductors, and quantum from the Industrial Accelerator Act

https://www.sdxcentral.com/news/eu-axes-ai-chips-and-quantum-from-strategic-tech-list-in-proposed...
2•alephnerd•1h ago•3 comments

Save 70-90% in tokens per session

1•hasna•1h ago•2 comments

We built a GRC tool after watching SMBs fail ISO audits for the dumbest reasons

https://mitigata-grc-tfukpqvn.manus.space/
1•Areena_28•1h ago•1 comments

Panopticon

https://en.wikipedia.org/wiki/Panopticon
2•simonebrunozzi•1h ago•0 comments

Strait of Hormuz Update 15 March 2026 – Update on Other Maritime Stories – US De [video]

https://www.youtube.com/watch?v=0SELRtaciaI
1•kamaraju•1h ago•0 comments

Pgtui, a Postgres TUI Client

https://kdwarn.net/programming/blog/227
2•salkahfi•1h ago•0 comments

Symfony 8.0.6 Released

https://symfony.com/blog/symfony-8-0-6-released
2•ms7892•1h ago•0 comments

Race on to establish globally recognised 'AI-free' logo

https://www.bbc.com/news/articles/cj0d6el50ppo
1•voxadam•1h ago•2 comments

10-Minute Description of How Judy Arrays Work and Why They Are So Fast

https://judy.sourceforge.net/doc/10minutes.htm
2•prakashqwerty•1h ago•0 comments

Apollo's John Zito Sounds Off on 'Arrogance' in Private Markets

https://www.wsj.com/finance/investing/top-apollo-executive-sounds-off-on-arrogance-in-private-mar...
1•petethomas•1h ago•0 comments

Productizing the Meta

https://nick.cloud/posts/productizing-the-meta/
1•npad•1h ago•0 comments

Agentic Trust Framework (ATF)

https://github.com/massivescale-ai/agentic-trust-framework
1•teleforce•1h ago•0 comments