google-agents-cli-scaffold
Project scaffolding, deployment configuration, and CI/CD setup for Google ADK agents.
moai-security-ssrf
Enterprise SSRF protection with URL validation and network segmentation
Full skill instructions
Server-Side Request Forgery (SSRF) Prevention
Focus: URL Validation, Allowlisting, Network Segmentation
Stack: Python (urllib/ipaddress), TypeScript (URL API)
Comprehensive defense strategies against SSRF attacks where an attacker induces the server to make requests to unintended locations.
Validates URLs against allowlists and blocks private IP ranges (including DNS rebinding protection).
import socket
import ipaddress
from urllib.parse import urlparse
class SSRFValidator:
def __init__(self, allowed_domains=None):
self.allowed_domains = allowed_domains or []
self.blocked_networks = [
ipaddress.ip_network('10.0.0.0/8'),
ipaddress.ip_network('172.16.0.0/12'),
ipaddress.ip_network('192.168.0.0/16'),
ipaddress.ip_network('127.0.0.0/8'),
ipaddress.ip_network('169.254.0.0/16'), # Cloud metadata
]
def validate(self, url: str) -> bool:
try:
parsed = urlparse(url)
# 1. Protocol Check
if parsed.scheme not in ('http', 'https'):
return False
# 2. Domain Allowlist Check
if self.allowed_domains and parsed.hostname not in self.allowed_domains:
return False
# 3. DNS Resolution & IP Check (Anti-DNS Rebinding)
# Note: In production, use the resolved IP for the actual request
ip_str = socket.gethostbyname(parsed.hostname)
ip_addr = ipaddress.ip_address(ip_str)
for network in self.blocked_networks:
if ip_addr in network:
return False
return True
except Exception:
return False
# Usage
validator = SSRFValidator(allowed_domains=['api.example.com', 'google.com'])
is_safe = validator.validate("https://169.254.169.254/latest/meta-data/") # False
Making requests safely using the validation logic.
import requests
from requests.adapters import HTTPAdapter
class SecureClient:
def __init__(self, validator):
self.validator = validator
self.session = requests.Session()
self.session.mount('https://', HTTPAdapter(max_retries=3))
def get(self, url: str, **kwargs):
# 1. Validate URL first
if not self.validator.validate(url):
raise ValueError(f"Blocked potentially unsafe URL: {url}")
# 2. Disable redirects to prevent open redirect bypasses
kwargs['allow_redirects'] = False
# 3. Set reasonable timeout
kwargs.setdefault('timeout', 5.0)
return self.session.get(url, **kwargs)
Ensure the application server cannot route to sensitive internal services.
AWS Security Group (Outbound Rules):
Docker Network:
services:
app:
networks:
- public_net
# Isolate from internal services
networks:
public_net:
internal: false
Content-Type and response size to prevent DoS or unexpected parsing.urllib, URL).http and https allowed? (No file://, gopher://)moai-security-devsecops: Security testingmoai-cloud-aws-advanced: AWS network securitymoai-security-encryption: Secure communicationLast Updated: 2025-11-20
Project scaffolding, deployment configuration, and CI/CD setup for Google ADK agents.
Set up tracing, logging, and monitoring for deployed ADK agents across Cloud Trace, BigQuery, and third-party platforms.
Enterprise Azure infrastructure architect generating Bicep or Terraform from workload descriptions.
Plan and configure production-ready Azure Kubernetes Service clusters with Day-0 and Day-1 best practices.
Raw mechanical interfaces fusing Swiss typographic print with military terminal aesthetics. Rigid grids, extreme type scale contrast, utilitarian color, analog degradation effects. For data-heavy dashboards, portfolios, or editorial sites that need to feel like declassified blueprints.
Web search, scraping, extraction, crawling, and monitoring via ScrapeGraph AI CLI.
Skill for working with Firebase Hosting (Classic). Use this when you want to deploy static web apps, Single Page Apps (SPAs), or simple microservices. Do NOT use for Firebase App Hosting.
Deploy and manage web apps with Firebase App Hosting. Use this skill when deploying Next.js/Angular apps with backends.
Deploy applications and websites to Vercel. Use when the user requests deployment actions like "deploy my app", "deploy and give me the link", "push this live", or "create a preview deployment".
Build SEO-optimized pages at scale using templates, data, and proven playbook patterns.
Design and build isolated, reusable Convex backend components with clear boundaries and app-facing wrappers.
Deploy and manage projects on Vercel using token-based authentication. Use when working with Vercel CLI using access tokens rather than interactive login — e.g. "deploy to vercel", "set up vercel", "add environment variables to vercel".
Opus.ai: Revolutionize Your Web Experience
Build a no-code AI app in minutes.
An IDE for code migration from legacy to modern frameworks through coding agents.
Automate CGI animation in live-action scenes
Branded artistic QR-code concepts
Launch a website in seconds with AI.
Streamline Your Coding Experience with AI Code Helper
Convert any screenshot or design to clean code.