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: Pw-whip, a bridge between PipeWire and WHIP

https://github.com/jech/pw-whip/
1•jech•1m ago•0 comments

Poll

1•krapp•2m ago•0 comments

Deep Dive into IBM's new NanoStack 0.7nm Process Node for Chips – 666 MTr/mm2

https://morethanmoore.substack.com/p/ibms-announces-07nm-process-node
2•IanCutress•3m ago•0 comments

Hollywood-backed nonprofit launches machine-readable AI consent registry

https://rslmedia.org/
1•navs•5m ago•0 comments

The Garbage Collection Handbook: The Art of Automatic Memory Management (2nd Ed)

https://gchandbook.org/
2•teleforce•9m ago•1 comments

AI doesn't take jobs. It takes tasks

https://www.nextgig.rocks/dash/how-ai-changes-jobs
2•poseidon_sg•11m ago•0 comments

How do you tackle a backlog of deferred maintenance you didn't create?

1•zeelex•12m ago•0 comments

Elasto Mania Ported to WebAssembly

https://joshumax.github.io/elma-web/
1•joshumax•14m ago•0 comments

Show HN: HoprLabs – a Python lab for prototyping AI math ideas

https://github.com/TangibleResearch/HoprLabs
2•reboy•17m ago•0 comments

Oracle workforce shrinks by about 21,000 employees amid AI adoption

https://finance.yahoo.com/technology/ai/articles/oracle-workforce-shrinks-13-204431510.html
1•akyuu•20m ago•0 comments

Ford could bring F1-inspired 'skunkworks' EVs to Europe

https://www.autocar.co.uk/car-news/electric-cars/ford-could-bring-f1-inspired-skunkworks-evs-europe
2•breve•21m ago•0 comments

Show HN: DeepSeek Flash inverted the economics of agent products

https://www.rtrvr.ai/blog/code-as-plan-deepseek-flash-text-only-browser-agent
3•arjunchint•23m ago•0 comments

Om Malik

https://en.wikipedia.org/wiki/Om_Malik
1•emot•25m ago•0 comments

California AI Unemployment Tracker

https://capolicylab.org/california-ai-unemployment-tracker/
1•toomuchtodo•26m ago•0 comments

Liveness Proofs in Veil, Part I: The First Step

https://proofsandintuitions.net/2026/06/24/liveness-proofs-in-veil-part-1/
1•matt_d•27m ago•0 comments

New macOS malware embeds fake errors to confuse AI analysis tools

https://www.bleepingcomputer.com/news/security/new-macos-malware-embeds-fake-errors-to-confuse-ai...
1•thewebguyd•27m ago•0 comments

Data Science Weekly – Issue 657

https://datascienceweekly.substack.com/p/data-science-weekly-issue-657
1•sebg•27m ago•0 comments

The Sunscreen Result No One Wants to Talk About

https://charlottekupewasserphd.substack.com/p/the-sunscreen-result-no-one-wants
2•olalonde•28m ago•1 comments

Powercode

https://codeberg.org/slaubenberger/Powercode
3•Atariman•29m ago•0 comments

OpenAI will delay GPT-5.6 after Trump administration request

https://www.theverge.com/ai-artificial-intelligence/957372/openai-will-delay-gpt-5-6-after-trump-...
7•tanelpoder•30m ago•0 comments

Where should 'Skip to main content' links go? (2025)

https://ashleemboyer.com/blog/where-should-skip-to-main-content-links-go/
1•mooreds•33m ago•0 comments

Export Claude.ai chats, artifacts, and visible thinking

https://github.com/lekandigital/claude-export-hub
1•lekan_digital•34m ago•0 comments

Ask HN: Would you advice someone to study CS in 2026?

1•Chipatama90•34m ago•0 comments

Can you spot the expensive AI?

https://www.theblindtest.io/
1•mfiguiere•35m ago•0 comments

Trump admin asks OpenAI to stagger the release of its new model

https://www.reuters.com/business/trump-administration-asks-openai-stagger-release-new-model-infor...
5•petethomas•35m ago•1 comments

LineShine supercomputer debuts as first to exceed 2 exaflops and first on TOP500

https://top500.org/news/lineshine-debuts-no-1-top500-enters-new-global-exascale-era/
1•teleforce•37m ago•0 comments

Internet works best in small dosages

https://michal.sapka.pl/2026/inet-dosages/
2•wrxd•38m ago•0 comments

Jailbreaking Isn't Theft

https://pluralistic.net/2026/06/25/thieve-different/
6•hn_acker•38m ago•0 comments

New Mexico governor calls for criminal probe of DEA allowing fentanyl shipments

https://apnews.com/article/fentanyl-dea-drugs-new-mexico-cb997b0097bba3ee9d5a98272ae65401
4•Jimmc414•40m ago•0 comments

Four Years After Dobbs, Anti-Abortion Lawmakers Keep Coming for Online Speech

https://www.eff.org/deeplinks/2026/06/four-years-after-dobbs-anti-abortion-lawmakers-keep-coming-...
4•hn_acker•40m ago•1 comments