attack_range
attack_range copied to clipboard
After adding phantom to working configuration build fails
Hello Team,
below details:
First Error while creating golden image for phantom.
2022-11-09 10:09:21,745 - INFO - attack_range - Check if images are available in region eu-central-1
2022-11-09 10:09:22,182 - INFO - attack_range - Image splunk-v3-0-0 is available in region eu-central-1
2022-11-09 10:09:22,385 - INFO - attack_range - Image windows-2016-v3-0-0 is available in region eu-central-1
2022-11-09 10:09:22,576 - INFO - attack_range - Image phantom-v3-0-0 is not available in region eu-central-1
2022-11-09 10:09:22,577 - INFO - attack_range - Checking if image phantom-v3-0-0 is available in other regions.
2022-11-09 10:09:38,735 - INFO - attack_range - Image phantom-v3-0-0 need to be built with packer.
2022-11-09 10:09:38,735 - INFO - attack_range - Create golden image for phantom-v3-0-0. This can take up to 30 minutes.
Error: Datasource.Execute failed: No AMI was found matching filters: {
Filters: [{
Name: "name",
Values: ["CentOS Linux 7*"]
},{
Name: "root-device-type",
Values: ["ebs"]
},{
Name: "virtualization-type",
Values: ["hvm"]
}],
Owners: ["679593333241"]
}
on packer/phantom_server/phantom_aws.pkr.hcl line 43:
(source code not available)
Second related to centos ami:
╷
│ Error: Your query returned no results. Please change your search criteria and try again.
│
│ with module.phantom-server.data.aws_ami.latest-centos[0],
│ on modules/phantom-server/resources.tf line 13, in data "aws_ami" "latest-centos":
│ 13: data "aws_ami" "latest-centos" {
│
╵
But also windows ami arror apperas.
╷
│ Error: Unsupported attribute
│
│ on modules/windows/resources.tf line 20, in data "aws_ami" "windows_ami":
│ 20: values = [var.windows_servers[count.index].windows_ami]
│ ├────────────────
│ │ count.index is 0
│ │ var.windows_servers is list of object with 1 element
│
│ This object does not have an attribute named "windows_ami".
My config:
general:
cloud_provider: aws
attack_range_password: zzzzzzzzzzzzzzz
use_prebuilt_images_with_packer: '1'
key_name: root-xxzxzxz
ip_whitelist: 55.33.11.22/32
range_name: PM-AR
aws:
private_key_path: /attack_range/root-xxzxzxz.key
region: eu-central-1
windows_servers:
- hostname: ar-win
windows_image: windows-2016-v3-0-0
splunk_server:
install_es: "1"
splunk_es_ap: "splunk-enterprise-security_701.spl"
phantom_server:
phantom_server: "1"
phantom_community_username: "[email protected]"
phantom_community_password: "xXxXxXxXxX"
If I remove phantom_server section from yml, it builds without errors.
Hi @pioootrek
Sorry about that, we're in the process of re-working how Splunk SOAR is built in the attack_range and are aware that its currently not functioning.
I'm looking into the Windows Server issue you're having as well.
this should be fixed