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.

HybridInfer: Local-first LLM router that falls back to cloud on failure

https://github.com/SimranKoul2026/HybridInfer-Python-tool
1•bookworm10•1m ago•0 comments

GoPro Says It's Moving into Data Centers as Part of a $285M Merger

https://www.engadget.com/2248633/gopro-says-its-moving-into-ai-data-centers-as-part-of-a-dollar28...
1•m463•6m ago•0 comments

Apple's official X account has unfollowed Tim Cook

https://twitter.com/landiantech/status/2094824431671734494
1•uneven9434•6m ago•0 comments

Show HN: Rust compiler converting CPGs to Nuclei YAML

https://github.com/Tito0015/cpg-nuclei-compiler
1•Tarek-M•10m ago•0 comments

Bazel's UX is really, really, really bad

https://blog.appliedcomputing.io/p/bazels-ux-is-really-really-really
1•thunderbong•11m ago•0 comments

YC Summer '26 Batch

https://www.neweconomies.co/p/y-combinator-summer-26-batch
2•ollieforsyth•11m ago•1 comments

How much of your coding is done by AI coding agents these days?

https://slashdot.org/poll/3284/how-much-of-your-coding-is-done-by-ai-coding-agents-these-days
1•e12e•12m ago•0 comments

JetBrains says Cadence was breached after a critical TeamCity patch was missed

https://blog.jetbrains.com/pycharm/2026/08/cadence-security-incident-august-2026/
1•lbw1215•13m ago•0 comments

Show HN: Life Compass – A life planning app built on The 7 Habits

https://lifecmp.com
1•michaelwang100•14m ago•0 comments

Rooting a fire hd 10 because apparently I have problems

https://voidnullvalue.github.io/SnuSnuRoot/
1•voidnullvalue•20m ago•0 comments

Slopmancer

https://slopmancer.com
1•pj4533•22m ago•1 comments

Crossplane AI Contribution Policy

https://github.com/crossplane/crossplane/blob/main/AI_POLICY.md
1•gpi•23m ago•0 comments

Claude Fable 5.1 tightens restrictions on reusing thinking blocks

https://platform.claude.com/docs/en/build-with-claude/thinking
2•firexcy•23m ago•0 comments

BotEmbed – a site-aware chatbot you embed with one script tag

https://www.botembed.ai
1•tuckerzd•31m ago•0 comments

Claude Fable 5.1 made me a nice animated pelican

https://simonwillison.net/2026/Sep/1/claude-fable-5-1/
5•elsewhen•31m ago•0 comments

Cognition Set to Raise Around $1B at a $47B Valuation

https://www.bloomberg.com/news/articles/2026-09-02/ai-startup-cognition-set-to-raise-around-1-bil...
1•gk1•36m ago•0 comments

Apple Maps Changes Lake Ontario to Lake America After Trump Order

https://www.bbc.com/news/articles/cddvyyz0e47o
4•andsoitis•38m ago•2 comments

Pivotal CEO left the eVTOL company

https://techcrunch.com/2026/09/01/larry-pages-flying-car-company-pivotal-loses-its-ceo/
1•paaloeye•39m ago•2 comments

Offering Zero Data Retention for frontier models

https://openai.com/index/offering-zero-data-retention-for-frontier-models/
3•gmays•46m ago•0 comments

Intel replaces Intel Fellow title after nearly 50 years

https://www.oregonlive.com/silicon-forest/2026/09/intel-drops-fellow-designation-for-its-top-scie...
3•osnium123•49m ago•0 comments

Important Security Update for Plex Media Server v1.43.2 and Earlier

https://forums.plex.tv/t/important-security-update-for-plex-media-server-v1-43-2-and-earlier/942319
2•akersten•58m ago•0 comments

Anthropic banned me for "suspicious signals"

https://kix.codes/anthropic-banned-me-for-suspicious-signals/
2•kixpanganiban•58m ago•0 comments

State of Local AI Report

https://www.basecompute.co/stateoflocalai
3•lukasonedge•59m ago•1 comments

$64B of data center projects have been blocked or delayed amid opposition

https://www.datacenterwatch.org/report
3•sensanaty•1h ago•0 comments

The ZX Spectrum sound chip hidden in a 1992 DOS game's Tandy driver

https://utopia.platesteel.net/phantom/
3•duncanbowring•1h ago•0 comments

LLMs and Self-Referentiality

https://scottaaronson.blog/?p=10046
1•mavdol04•1h ago•0 comments

Compilers 2.0: AI as stochastic optimizer

https://twitter.com/cdleary/status/2094878051238887834
2•matt_d•1h ago•0 comments

Gelman: Shocked by Ariely 2002 replication failure

https://statmodeling.stat.columbia.edu/2026/08/31/shocked/
2•jsw97•1h ago•0 comments

How an MIT research project became a global programming language

https://news.mit.edu/2026/how-mit-research-project-became-global-programming-language-0831
5•pella•1h ago•0 comments

Consider that alignment may not be possible

https://12gramsofcarbon.com/p/tech-things-consider-that-alignment
1•theahura•1h ago•0 comments