├── .gitattributes ├── .gitignore ├── LICENSE ├── README.md ├── USAGE.md ├── agent ├── cgr_agent │ ├── __init__.py │ ├── cgr_agent.py │ ├── cgr_helper.py │ └── cgr_messages.py ├── export_syn_prompt.py ├── kg_utils.py ├── llm_client_utils.py ├── log_utils.py ├── main_sec_code.py ├── main_sec_event.py ├── reasoning_sampler.py ├── sec_code_composer │ ├── __init__.py │ ├── coder_agent.py │ ├── collect_agent.py │ ├── diversity_helper.py │ ├── intention_review_agent.py │ ├── prompts │ │ ├── compose.txt │ │ ├── compose_inspiration_template.txt │ │ ├── intention_review.txt │ │ └── review.txt │ ├── task_generation_codegen_agent.py │ ├── task_messages.py │ └── text_review_agent.py ├── sec_event_composer │ ├── __init__.py │ ├── coder_agent.py │ ├── collect_agent.py │ ├── composer_agent.py │ ├── diversity_helper.py │ ├── helpfulness_review_agent.py │ ├── prompts │ │ ├── compliance_review.txt │ │ ├── compose.txt │ │ ├── compose_inspiration_template.txt │ │ ├── compose_old.txt │ │ └── intention_review.txt │ ├── task_messages.py │ └── text_review_agent.py └── utils.py ├── assets ├── astra-banner.svg ├── offline_domain_modeling.gif ├── reasoning.png ├── temporal_exploration.gif └── wf.png ├── data_out ├── syn_sec_code_tasks-phi4m-only_export.jsonl └── syn_sec_event_tasks-phi4m-only_export.jsonl ├── enumerator ├── claude_utils.py ├── enumerate_context.py ├── enumerate_mal_asset.py ├── enumerate_mal_software.py ├── enumerate_mal_tactics.py ├── enumerate_mal_weakness.py ├── enumerate_pl_feature.py ├── enumerate_risks.py ├── enumerate_task.py ├── enumerator.py ├── generate_mal_tactics_root.py ├── mitre_utils.py ├── tree_utils.py └── vul_code_example.py ├── kg ├── bugtype.kg.json ├── complexity.kg ├── context.gen.kg ├── context.kg ├── mal_asset.gen.kg ├── mal_asset.kg ├── mal_software.gen.kg ├── mal_software.kg ├── mal_tactics.gen.kg ├── mal_tactics.kg ├── mal_weakness.gen.kg ├── mal_weakness.kg ├── pl_features.gen.kg ├── pl_features.kg ├── risk.gen.kg ├── risk.kg ├── task.gen.kg └── task.kg ├── online ├── bt │ ├── __init__.py │ └── client.py ├── main.py └── rt │ ├── constants.py │ ├── data_modeling │ ├── __init__.py │ ├── defender.py │ ├── prompts.py │ ├── scheduler.py │ └── session.py │ ├── judge │ ├── __init__.py │ ├── utils_ast.py │ ├── vul_code_judge.py │ └── vul_code_judge_re.py │ ├── logger │ ├── __init__.py │ └── setup.py │ ├── prompt_utils.py │ ├── rt_entry.py │ ├── scheduler │ ├── __init__.py │ ├── defender_scheduler.py │ ├── scheduler_common.py │ ├── sec_event_scheduler.py │ └── vul_code_scheduler.py │ └── temporal_explorator │ ├── __init__.py │ ├── config │ └── default_config.yaml │ ├── core │ ├── __init__.py │ ├── action_selector.py │ ├── prompt_generator.py │ ├── state_mapper.py │ └── temporal_explorator.py │ ├── models │ ├── __init__.py │ ├── action.py │ └── state.py │ ├── prompts │ ├── __init__.py │ └── system_prompts.py │ └── utils │ ├── __init__.py │ ├── chat_utils.py │ └── exceptions.py ├── requirements.txt └── resources ├── client-config.yaml ├── coder-config.yaml ├── online-judge.yaml ├── rule_name2exact_rule_name.json ├── rules.json └── vul_code_model_judge.txt /.gitattributes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/.gitattributes -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/README.md -------------------------------------------------------------------------------- /USAGE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/USAGE.md -------------------------------------------------------------------------------- /agent/cgr_agent/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/agent/cgr_agent/__init__.py -------------------------------------------------------------------------------- /agent/cgr_agent/cgr_agent.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/agent/cgr_agent/cgr_agent.py -------------------------------------------------------------------------------- /agent/cgr_agent/cgr_helper.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/agent/cgr_agent/cgr_helper.py -------------------------------------------------------------------------------- /agent/cgr_agent/cgr_messages.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/agent/cgr_agent/cgr_messages.py -------------------------------------------------------------------------------- /agent/export_syn_prompt.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/agent/export_syn_prompt.py -------------------------------------------------------------------------------- /agent/kg_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/agent/kg_utils.py -------------------------------------------------------------------------------- /agent/llm_client_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/agent/llm_client_utils.py -------------------------------------------------------------------------------- /agent/log_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/agent/log_utils.py -------------------------------------------------------------------------------- /agent/main_sec_code.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/agent/main_sec_code.py -------------------------------------------------------------------------------- /agent/main_sec_event.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/agent/main_sec_event.py -------------------------------------------------------------------------------- /agent/reasoning_sampler.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/agent/reasoning_sampler.py -------------------------------------------------------------------------------- /agent/sec_code_composer/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/agent/sec_code_composer/__init__.py -------------------------------------------------------------------------------- /agent/sec_code_composer/coder_agent.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/agent/sec_code_composer/coder_agent.py -------------------------------------------------------------------------------- /agent/sec_code_composer/collect_agent.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/agent/sec_code_composer/collect_agent.py -------------------------------------------------------------------------------- /agent/sec_code_composer/diversity_helper.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/agent/sec_code_composer/diversity_helper.py -------------------------------------------------------------------------------- /agent/sec_code_composer/intention_review_agent.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/agent/sec_code_composer/intention_review_agent.py -------------------------------------------------------------------------------- /agent/sec_code_composer/prompts/compose.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/agent/sec_code_composer/prompts/compose.txt -------------------------------------------------------------------------------- /agent/sec_code_composer/prompts/compose_inspiration_template.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/agent/sec_code_composer/prompts/compose_inspiration_template.txt -------------------------------------------------------------------------------- /agent/sec_code_composer/prompts/intention_review.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/agent/sec_code_composer/prompts/intention_review.txt -------------------------------------------------------------------------------- /agent/sec_code_composer/prompts/review.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/agent/sec_code_composer/prompts/review.txt -------------------------------------------------------------------------------- /agent/sec_code_composer/task_generation_codegen_agent.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/agent/sec_code_composer/task_generation_codegen_agent.py -------------------------------------------------------------------------------- /agent/sec_code_composer/task_messages.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/agent/sec_code_composer/task_messages.py -------------------------------------------------------------------------------- /agent/sec_code_composer/text_review_agent.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/agent/sec_code_composer/text_review_agent.py -------------------------------------------------------------------------------- /agent/sec_event_composer/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/agent/sec_event_composer/__init__.py -------------------------------------------------------------------------------- /agent/sec_event_composer/coder_agent.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/agent/sec_event_composer/coder_agent.py -------------------------------------------------------------------------------- /agent/sec_event_composer/collect_agent.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/agent/sec_event_composer/collect_agent.py -------------------------------------------------------------------------------- /agent/sec_event_composer/composer_agent.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/agent/sec_event_composer/composer_agent.py -------------------------------------------------------------------------------- /agent/sec_event_composer/diversity_helper.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/agent/sec_event_composer/diversity_helper.py -------------------------------------------------------------------------------- /agent/sec_event_composer/helpfulness_review_agent.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/agent/sec_event_composer/helpfulness_review_agent.py -------------------------------------------------------------------------------- /agent/sec_event_composer/prompts/compliance_review.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/agent/sec_event_composer/prompts/compliance_review.txt -------------------------------------------------------------------------------- /agent/sec_event_composer/prompts/compose.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/agent/sec_event_composer/prompts/compose.txt -------------------------------------------------------------------------------- /agent/sec_event_composer/prompts/compose_inspiration_template.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/agent/sec_event_composer/prompts/compose_inspiration_template.txt -------------------------------------------------------------------------------- /agent/sec_event_composer/prompts/compose_old.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/agent/sec_event_composer/prompts/compose_old.txt -------------------------------------------------------------------------------- /agent/sec_event_composer/prompts/intention_review.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/agent/sec_event_composer/prompts/intention_review.txt -------------------------------------------------------------------------------- /agent/sec_event_composer/task_messages.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/agent/sec_event_composer/task_messages.py -------------------------------------------------------------------------------- /agent/sec_event_composer/text_review_agent.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/agent/sec_event_composer/text_review_agent.py -------------------------------------------------------------------------------- /agent/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/agent/utils.py -------------------------------------------------------------------------------- /assets/astra-banner.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/assets/astra-banner.svg -------------------------------------------------------------------------------- /assets/offline_domain_modeling.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/assets/offline_domain_modeling.gif -------------------------------------------------------------------------------- /assets/reasoning.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/assets/reasoning.png -------------------------------------------------------------------------------- /assets/temporal_exploration.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/assets/temporal_exploration.gif -------------------------------------------------------------------------------- /assets/wf.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/assets/wf.png -------------------------------------------------------------------------------- /data_out/syn_sec_code_tasks-phi4m-only_export.jsonl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/data_out/syn_sec_code_tasks-phi4m-only_export.jsonl -------------------------------------------------------------------------------- /data_out/syn_sec_event_tasks-phi4m-only_export.jsonl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/data_out/syn_sec_event_tasks-phi4m-only_export.jsonl -------------------------------------------------------------------------------- /enumerator/claude_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/enumerator/claude_utils.py -------------------------------------------------------------------------------- /enumerator/enumerate_context.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/enumerator/enumerate_context.py -------------------------------------------------------------------------------- /enumerator/enumerate_mal_asset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/enumerator/enumerate_mal_asset.py -------------------------------------------------------------------------------- /enumerator/enumerate_mal_software.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/enumerator/enumerate_mal_software.py -------------------------------------------------------------------------------- /enumerator/enumerate_mal_tactics.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/enumerator/enumerate_mal_tactics.py -------------------------------------------------------------------------------- /enumerator/enumerate_mal_weakness.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/enumerator/enumerate_mal_weakness.py -------------------------------------------------------------------------------- /enumerator/enumerate_pl_feature.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/enumerator/enumerate_pl_feature.py -------------------------------------------------------------------------------- /enumerator/enumerate_risks.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/enumerator/enumerate_risks.py -------------------------------------------------------------------------------- /enumerator/enumerate_task.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/enumerator/enumerate_task.py -------------------------------------------------------------------------------- /enumerator/enumerator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/enumerator/enumerator.py -------------------------------------------------------------------------------- /enumerator/generate_mal_tactics_root.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/enumerator/generate_mal_tactics_root.py -------------------------------------------------------------------------------- /enumerator/mitre_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/enumerator/mitre_utils.py -------------------------------------------------------------------------------- /enumerator/tree_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/enumerator/tree_utils.py -------------------------------------------------------------------------------- /enumerator/vul_code_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/enumerator/vul_code_example.py -------------------------------------------------------------------------------- /kg/bugtype.kg.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/kg/bugtype.kg.json -------------------------------------------------------------------------------- /kg/complexity.kg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/kg/complexity.kg -------------------------------------------------------------------------------- /kg/context.gen.kg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/kg/context.gen.kg -------------------------------------------------------------------------------- /kg/context.kg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/kg/context.kg -------------------------------------------------------------------------------- /kg/mal_asset.gen.kg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/kg/mal_asset.gen.kg -------------------------------------------------------------------------------- /kg/mal_asset.kg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/kg/mal_asset.kg -------------------------------------------------------------------------------- /kg/mal_software.gen.kg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/kg/mal_software.gen.kg -------------------------------------------------------------------------------- /kg/mal_software.kg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/kg/mal_software.kg -------------------------------------------------------------------------------- /kg/mal_tactics.gen.kg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/kg/mal_tactics.gen.kg -------------------------------------------------------------------------------- /kg/mal_tactics.kg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/kg/mal_tactics.kg -------------------------------------------------------------------------------- /kg/mal_weakness.gen.kg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/kg/mal_weakness.gen.kg -------------------------------------------------------------------------------- /kg/mal_weakness.kg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/kg/mal_weakness.kg -------------------------------------------------------------------------------- /kg/pl_features.gen.kg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/kg/pl_features.gen.kg -------------------------------------------------------------------------------- /kg/pl_features.kg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/kg/pl_features.kg -------------------------------------------------------------------------------- /kg/risk.gen.kg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/kg/risk.gen.kg -------------------------------------------------------------------------------- /kg/risk.kg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/kg/risk.kg -------------------------------------------------------------------------------- /kg/task.gen.kg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/kg/task.gen.kg -------------------------------------------------------------------------------- /kg/task.kg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/kg/task.kg -------------------------------------------------------------------------------- /online/bt/__init__.py: -------------------------------------------------------------------------------- 1 | # This file makes the tests directory a Python package -------------------------------------------------------------------------------- /online/bt/client.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/online/bt/client.py -------------------------------------------------------------------------------- /online/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/online/main.py -------------------------------------------------------------------------------- /online/rt/constants.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/online/rt/constants.py -------------------------------------------------------------------------------- /online/rt/data_modeling/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/online/rt/data_modeling/__init__.py -------------------------------------------------------------------------------- /online/rt/data_modeling/defender.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/online/rt/data_modeling/defender.py -------------------------------------------------------------------------------- /online/rt/data_modeling/prompts.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/online/rt/data_modeling/prompts.py -------------------------------------------------------------------------------- /online/rt/data_modeling/scheduler.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/online/rt/data_modeling/scheduler.py -------------------------------------------------------------------------------- /online/rt/data_modeling/session.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/online/rt/data_modeling/session.py -------------------------------------------------------------------------------- /online/rt/judge/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/online/rt/judge/__init__.py -------------------------------------------------------------------------------- /online/rt/judge/utils_ast.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/online/rt/judge/utils_ast.py -------------------------------------------------------------------------------- /online/rt/judge/vul_code_judge.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/online/rt/judge/vul_code_judge.py -------------------------------------------------------------------------------- /online/rt/judge/vul_code_judge_re.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/online/rt/judge/vul_code_judge_re.py -------------------------------------------------------------------------------- /online/rt/logger/__init__.py: -------------------------------------------------------------------------------- 1 | from .setup import purcl_logger_adapter -------------------------------------------------------------------------------- /online/rt/logger/setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/online/rt/logger/setup.py -------------------------------------------------------------------------------- /online/rt/prompt_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/online/rt/prompt_utils.py -------------------------------------------------------------------------------- /online/rt/rt_entry.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/online/rt/rt_entry.py -------------------------------------------------------------------------------- /online/rt/scheduler/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/online/rt/scheduler/__init__.py -------------------------------------------------------------------------------- /online/rt/scheduler/defender_scheduler.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/online/rt/scheduler/defender_scheduler.py -------------------------------------------------------------------------------- /online/rt/scheduler/scheduler_common.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/online/rt/scheduler/scheduler_common.py -------------------------------------------------------------------------------- /online/rt/scheduler/sec_event_scheduler.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/online/rt/scheduler/sec_event_scheduler.py -------------------------------------------------------------------------------- /online/rt/scheduler/vul_code_scheduler.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/online/rt/scheduler/vul_code_scheduler.py -------------------------------------------------------------------------------- /online/rt/temporal_explorator/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/online/rt/temporal_explorator/__init__.py -------------------------------------------------------------------------------- /online/rt/temporal_explorator/config/default_config.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/online/rt/temporal_explorator/config/default_config.yaml -------------------------------------------------------------------------------- /online/rt/temporal_explorator/core/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/online/rt/temporal_explorator/core/__init__.py -------------------------------------------------------------------------------- /online/rt/temporal_explorator/core/action_selector.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/online/rt/temporal_explorator/core/action_selector.py -------------------------------------------------------------------------------- /online/rt/temporal_explorator/core/prompt_generator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/online/rt/temporal_explorator/core/prompt_generator.py -------------------------------------------------------------------------------- /online/rt/temporal_explorator/core/state_mapper.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/online/rt/temporal_explorator/core/state_mapper.py -------------------------------------------------------------------------------- /online/rt/temporal_explorator/core/temporal_explorator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/online/rt/temporal_explorator/core/temporal_explorator.py -------------------------------------------------------------------------------- /online/rt/temporal_explorator/models/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/online/rt/temporal_explorator/models/__init__.py -------------------------------------------------------------------------------- /online/rt/temporal_explorator/models/action.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/online/rt/temporal_explorator/models/action.py -------------------------------------------------------------------------------- /online/rt/temporal_explorator/models/state.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/online/rt/temporal_explorator/models/state.py -------------------------------------------------------------------------------- /online/rt/temporal_explorator/prompts/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/online/rt/temporal_explorator/prompts/__init__.py -------------------------------------------------------------------------------- /online/rt/temporal_explorator/prompts/system_prompts.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/online/rt/temporal_explorator/prompts/system_prompts.py -------------------------------------------------------------------------------- /online/rt/temporal_explorator/utils/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/online/rt/temporal_explorator/utils/__init__.py -------------------------------------------------------------------------------- /online/rt/temporal_explorator/utils/chat_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/online/rt/temporal_explorator/utils/chat_utils.py -------------------------------------------------------------------------------- /online/rt/temporal_explorator/utils/exceptions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/online/rt/temporal_explorator/utils/exceptions.py -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/requirements.txt -------------------------------------------------------------------------------- /resources/client-config.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/resources/client-config.yaml -------------------------------------------------------------------------------- /resources/coder-config.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/resources/coder-config.yaml -------------------------------------------------------------------------------- /resources/online-judge.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/resources/online-judge.yaml -------------------------------------------------------------------------------- /resources/rule_name2exact_rule_name.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/resources/rule_name2exact_rule_name.json -------------------------------------------------------------------------------- /resources/rules.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/resources/rules.json -------------------------------------------------------------------------------- /resources/vul_code_model_judge.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PurCL/ASTRA/HEAD/resources/vul_code_model_judge.txt --------------------------------------------------------------------------------