# python
標記為「python」的 14 篇文章
Language-Specific Risks in AI-Generated Code
Language-specific security risks in AI-generated code: Python (pickle, eval, subprocess), JavaScript (prototype pollution, eval), Rust (unsafe blocks), and Go (SQL injection in string formatting).
Building Custom Red Team Tools
Guide to building custom AI red teaming tools, including target-specific harnesses, result analysis pipelines, and integration with existing security workflows.
Lab: Exploring Embedding Spaces
Hands-on lab using Python to visualize embedding spaces, measure semantic similarity, and demonstrate how adversarial documents can be crafted to match target queries.
Lab: Building a Simple Test Harness
Build a reusable Python test harness that automates sending test prompts, recording results, and calculating attack success metrics.
Lab: Poisoning a Training Dataset
Hands-on lab demonstrating dataset poisoning and fine-tuning to show behavioral change, with step-by-step Python code, backdoor trigger measurement, and troubleshooting guidance.
Tool Walkthroughs
End-to-end practical walkthroughs for essential AI red teaming tools, covering installation, configuration, execution, and result interpretation.
Python Red Team Automation
Building custom AI red team automation with Python: test harnesses with httpx and aiohttp, result collection and analysis, automated reporting, and integration with existing tools like promptfoo and garak.
AI 生成程式碼中之語言特定風險
AI 生成程式碼中之語言特定安全風險:Python(pickle、eval、subprocess)、JavaScript(prototype pollution、eval)、Rust(unsafe 區塊),與 Go(字串格式化中之 SQL 注入)。
打造自訂紅隊工具
打造自訂 AI 紅隊工具之指南,含目標特定 harness、結果分析管線,與與現有安全工作流程之整合。
實作:探索 Embedding 空間
使用 Python 視覺化 embedding 空間、量測語意相似度,並展示如何打造與目標查詢匹配之對抗文件之實作。
實驗室: Building a Simple Test Harness
Build a reusable Python test harness that automates sending test prompts, recording results, and calculating attack success metrics.
實驗室: 投毒 a 訓練 Dataset
Hands-on lab demonstrating dataset poisoning and fine-tuning to show behavioral change, with step-by-step Python code, backdoor trigger measurement, and troubleshooting guidance.
工具導覽
必備 AI 紅隊演練工具的端對端實務導覽,涵蓋安裝、設定、執行與結果詮釋。
Python 紅隊 Automation
Building custom AI red team automation with Python: test harnesses with httpx and aiohttp, result collection and analysis, automated reporting, and integration with existing tools like promptfoo and garak.