TaaC AI
1.0.0
它利用AI来分析服务描述,确定安全威胁,可视化数据流并根据Stride框架和OWASP指南提出补救措施。该脚本生成深入的HTML报告,并包括手动风险评估的功能。

将OpenAI API密钥设置为环境变量OpenAI_KEY和ANTHROPIC_KEY在您的操作系统中
Openai API人类API
Linux/Mac
export OPENAI_KEY=sk-ApiKeyExample export ANTHROPIC_KEY=sk-ant-api03-ApiKeyExample视窗
set OPENAI_KEY=sk-ApiKeyExample set ANTHROPIC_KEY=sk-ant-api03-ApiKeyExamplepip3 install -r requirements.txtollama pull mistralollama serve现在,您可以将Mistral用作主要模型:
python3 TaaC-AI.py --model mistral < path_to_yaml_file >或用于交叉验证
python3 TaaC-AI.py --model claude --cross-validation mistral < path_to_yaml_file > taac_yaml_generator.py来指导您完成一个生成一个过程
python3 TaaC-AI.py < path_to_yaml_file >使用gpt-4 , claude或mistral作为模型,通过指定--model选项来识别威胁
python3 TaaC-AI.py --model gpt-4 < path_to_yaml_file >通过另一种LLM使用--cross-validation选项执行威胁结果验证。
python3 TaaC-AI.py --model claude --cross-validation claude < path_to_yaml_file > Version : ' 1.0 '
Date : 14.11.2023
# Authentication Service Description
Description :
Name : AuthService
Type : Service
Criticality : Tier1
# Service Functionality
Functionality : Handles user authentication, including login and token generation.
# Data Processing Details
DataProcessed :
Type : Confidential
DataCategory : Auth
EncryptionAtRest : Yes
# Components Used by the Service
Components :
Internal :
Exist : Yes
Source : Private
Note : Scoped Package Access
External :
Exist : Yes
PackageManager : NPM
# Pipeline Configuration
Pipeline :
Type : GithubActions
CODEOWNERS : Yes
BranchProtection : Yes
SignCommits : Yes
PinActions : Yes
# Network Information
Network :
Access : Private
# Authentication Service Data Flow
dataFlow : # Removed the dash here
- name : UserAuthenticationFlow
description : Authenticates users and issues tokens.
source : UserLoginInterface
EncryptionTransit : Yes
Authentication :
Exist : Yes
Type : JWT
Authorization : read-write
Protocol : HTTPS
Communication :
Type : RESTful API
interactions :
- from : UserLoginInterface
to : AuthService
method : RESTful API
protocol : HTTPS
- from : AuthService
to : UserDatabase
method : Query
protocol : JDBC
servicesInvolved : [UserLoginInterface, AuthService, UserDatabase]



所有建议写给[email protected]