# python
標記為「python」的 7 篇文章
AI 生成程式碼中之語言特定風險
AI 生成程式碼中之語言特定安全風險:Python(pickle、eval、subprocess)、JavaScript(prototype pollution、eval)、Rust(unsafe 區塊),與 Go(字串格式化中之 SQL 注入)。
pythonjavascriptrustgolanguage-specificvulnerability-patternsai-generated-code
打造自訂紅隊工具
打造自訂 AI 紅隊工具之指南,含目標特定 harness、結果分析管線,與與現有安全工作流程之整合。
custom-toolingexploit-devautomationpythonengineering
實作:探索嵌入空間
使用 Python 視覺化嵌入空間、測量語意相似度,並展示如何打造與目標查詢匹配的對抗性文件之動手實作。
labembeddingshands-onpythonintermediate
實作:建構簡單測試框架
建構 a reusable Python test harness that automates sending test prompts, recording results, and calculating attack success metrics.
labharnessautomationpython
實作:投毒預訓練資料集
動手實驗——在公開可爬取資源中植入投毒內容,觀察對小型預訓練模型的影響與偵測機制。
labhands-ondataset-poisoningbackdoorfine-tuningpythontransformers
工具導覽
必備 AI 紅隊演練工具的端對端實務導覽,涵蓋安裝、設定、執行與結果詮釋。
toolswalkthroughsgarakpyritpromptfooburp-suiteinspect-aiollamapython
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.
pythonautomationhttpxaiohttpreportingtest-harnesswalkthrough