-
Notifications
You must be signed in to change notification settings - Fork 283
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8a9bb72
commit 928a0aa
Showing
25 changed files
with
83 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,10 +3,10 @@ | |
# Copyright 2022 SUSE LLC | ||
# SPDX-License-Identifier: FSFAP | ||
|
||
# Summary: Base module for ATSEC test cases | ||
# Summary: Base module for EAL4 test cases | ||
# Maintainer: QE Security <[email protected]> | ||
|
||
package atsec_test; | ||
package eal4_test; | ||
|
||
use base Exporter; | ||
|
||
|
@@ -22,7 +22,7 @@ our @EXPORT = qw( | |
$client_ip | ||
); | ||
|
||
our $code_dir = '/usr/local/atsec'; | ||
our $code_dir = '/usr/local/eal4'; | ||
our @white_list_for_dbus = ( | ||
'org.freedesktop.hostname1', | ||
'org.freedesktop.locale1', | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: eal4_tests | ||
description: > | ||
This is for EAL4 tests | ||
schedule: | ||
- installation/bootloader_start | ||
- security/boot_disk | ||
- security/eal4/setup_eal4_env | ||
- '{{disable_root_ssh}}' | ||
- security/eal4/accessible_network_interface | ||
- security/eal4/kvm_check | ||
- security/eal4/drng_test_preparation | ||
- security/eal4/dbus_services_exposure | ||
- security/eal4/check_undocumented_security_programs | ||
- security/eal4/dbus_fuzzer | ||
- security/eal4/syscall_thrasher | ||
- security/eal4/netlink_message | ||
- security/eal4/chrony_pid_file | ||
- security/eal4/permission_settings | ||
- '{{check_processor_vulnerability_mitigations}}' | ||
conditional_schedule: | ||
check_processor_vulnerability_mitigations: | ||
ARCH: | ||
x86_64: | ||
- security/eal4/check_processor_vulnerability_mitigations | ||
aarch64: | ||
- security/eal4/check_processor_vulnerability_mitigations | ||
disable_root_ssh: | ||
ARCH: | ||
s390x: | ||
- security/cc/disable_root_ssh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
# Copyright 2022 SUSE LLC | ||
# SPDX-License-Identifier: FSFAP | ||
# | ||
# Summary: Run 'AppArmor negative test' test case of ATSec test suite | ||
# Summary: Run 'AppArmor negative test' test case of EAL4 test suite | ||
# Maintainer: QE Security <[email protected]> | ||
# Tags: poo#109307 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
# Copyright 2022 SUSE LLC | ||
# SPDX-License-Identifier: FSFAP | ||
# | ||
# Summary: Run 'Extended AppArmor interface trace test' test case of ATSec test suite | ||
# Summary: Run 'Extended AppArmor interface trace test' test case of EAL4 test suite | ||
# Maintainer: QE Security <[email protected]> | ||
# Tags: poo#111242 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
# Copyright 2022 SUSE LLC | ||
# SPDX-License-Identifier: FSFAP | ||
# | ||
# Summary: Run ATSec 'ipsec ciphers' case | ||
# Summary: Run EAL4 'ipsec ciphers' case | ||
# Maintainer: QE Security <[email protected]> | ||
# Tags: poo#110980 | ||
|
||
|
@@ -20,7 +20,7 @@ sub run { | |
select_console 'root-console'; | ||
|
||
assert_script_run('export SYSTEMD_PAGER=""'); | ||
assert_script_run('cd /usr/local/atsec/ipsec/IPSEC_basic_eval'); | ||
assert_script_run('cd /usr/local/eal4/ipsec/IPSEC_basic_eval'); | ||
|
||
mutex_wait('READY_FOR_IPSEC_CIPHERS'); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
# Copyright 2022 SUSE LLC | ||
# SPDX-License-Identifier: FSFAP | ||
# | ||
# Summary: Run ATSec 'Weak IPsec ciphers' case | ||
# Summary: Run EAL4 'Weak IPsec ciphers' case | ||
# Maintainer: QE Security <[email protected]> | ||
# Tags: poo#101226 | ||
|
||
|
@@ -19,7 +19,7 @@ sub run { | |
my ($self) = @_; | ||
select_console 'root-console'; | ||
|
||
assert_script_run('cd /usr/local/atsec/ipsec/IPSEC_basic_eval'); | ||
assert_script_run('cd /usr/local/eal4/ipsec/IPSEC_basic_eval'); | ||
my $timeout = is_s390x() ? 180 : 90; | ||
my $output = script_output('bash test_basic_ipsec_eval_weak.bash', $timeout); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
# Copyright 2022 SUSE LLC | ||
# SPDX-License-Identifier: FSFAP | ||
# | ||
# Summary: Run 'Accessible network interface' test case of ATSec test suite | ||
# Summary: Run 'Accessible network interface' test case of EAL4 test suite | ||
# Maintainer: QE Security <[email protected]> | ||
# Tags: poo#111899 | ||
|
||
|
@@ -12,7 +12,7 @@ use strict; | |
use warnings; | ||
use testapi; | ||
use utils; | ||
use atsec_test; | ||
use eal4_test; | ||
use Data::Dumper; | ||
|
||
sub run { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
# Copyright 2022 SUSE LLC | ||
# SPDX-License-Identifier: FSFAP | ||
# | ||
# Summary: Run 'Check for processor vulnerability mitigations' test case of ATSec test suite | ||
# Summary: Run 'Check for processor vulnerability mitigations' test case of EAL4 test suite | ||
# Maintainer: QE Security <[email protected]> | ||
# Tags: poo#111809 | ||
|
||
|
@@ -12,7 +12,7 @@ use strict; | |
use warnings; | ||
use testapi; | ||
use utils; | ||
use atsec_test; | ||
use eal4_test; | ||
use Utils::Architectures; | ||
|
||
sub run { | ||
|
@@ -24,7 +24,7 @@ sub run { | |
my $log_file = 'spectre-meltdown-checker.log'; | ||
|
||
# use the file in gitlab | ||
assert_script_run("cd $atsec_test::code_dir/pentest/cpu-vul"); | ||
assert_script_run("cd $eal4_test::code_dir/pentest/cpu-vul"); | ||
|
||
# Run the test script | ||
script_run("sh $script --no-color > $log_file 2>&1", timeout => 180); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
# Copyright 2022 SUSE LLC | ||
# SPDX-License-Identifier: FSFAP | ||
# | ||
# Summary: Run 'Check for undocumented security-relevant programs' test case of ATSec test suite | ||
# Summary: Run 'Check for undocumented security-relevant programs' test case of EAL4 test suite | ||
# Maintainer: QE Security <[email protected]> | ||
# Tags: poo#111671 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
# Copyright 2022 SUSE LLC | ||
# SPDX-License-Identifier: FSFAP | ||
# | ||
# Summary: Run 'chrony pid file test' test case of ATSec test suite | ||
# Summary: Run 'chrony pid file test' test case of EAL4 test suite | ||
# Maintainer: QE Security <[email protected]> | ||
# Tags: poo#111386 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
# Copyright 2022 SUSE LLC | ||
# SPDX-License-Identifier: FSFAP | ||
# | ||
# Summary: Run 'DBus fuzzer' test case of ATSec test suite | ||
# Summary: Run 'DBus fuzzer' test case of EAL4 test suite | ||
# Maintainer: QE Security <[email protected]> | ||
# Tags: poo#109978 | ||
|
||
|
@@ -12,7 +12,7 @@ use strict; | |
use warnings; | ||
use testapi; | ||
use utils; | ||
use atsec_test; | ||
use eal4_test; | ||
use Mojo::Util 'trim'; | ||
use Data::Dumper; | ||
|
||
|
@@ -25,7 +25,7 @@ sub run { | |
zypper_call('in glib2-devel libffi-devel'); | ||
|
||
# Compile | ||
assert_script_run("cd $atsec_test::code_dir/pentest/dfuzzer-master/src"); | ||
assert_script_run("cd $eal4_test::code_dir/pentest/dfuzzer-master/src"); | ||
assert_script_run('make'); | ||
|
||
my $output = script_output('./dfuzzer -l 2>&1'); | ||
|
@@ -50,7 +50,7 @@ sub run { | |
record_info('Result of dfuzzer -l', Dumper(\@bus_list)); | ||
|
||
# Analyse the results | ||
my %hash_white_list = map { $_ => 1 } @atsec_test::white_list_for_dbus; | ||
my %hash_white_list = map { $_ => 1 } @eal4_test::white_list_for_dbus; | ||
my @unknown_bus_name = grep { !$hash_white_list{$_} } (@bus_list); | ||
|
||
# After filtering there should be no unknown name | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
# Copyright 2022 SUSE LLC | ||
# SPDX-License-Identifier: FSFAP | ||
# | ||
# Summary: Run 'DBus services exposure' test case of ATSec test suite | ||
# Summary: Run 'DBus services exposure' test case of EAL4 test suite | ||
# Maintainer: QE Security <[email protected]> | ||
# Tags: poo#109542 | ||
|
||
|
@@ -12,7 +12,7 @@ use strict; | |
use warnings; | ||
use testapi; | ||
use utils; | ||
use atsec_test; | ||
use eal4_test; | ||
use Data::Dumper; | ||
use version_utils 'is_sle'; | ||
use Utils::Architectures 'is_s390x'; | ||
|
@@ -92,11 +92,11 @@ sub run { | |
# https://bugzilla.suse.com/show_bug.cgi?id=1216538 | ||
if (is_sle('>=15-SP6') && is_s390x) { | ||
$white_list_for_busctl{virtqemud} = 1; | ||
push(@atsec_test::white_list_for_dbus, '1.28', '1.38'); | ||
push(@eal4_test::white_list_for_dbus, '1.28', '1.38'); | ||
} | ||
|
||
# Analyse the results. | ||
foreach my $wl (@atsec_test::white_list_for_dbus) { | ||
foreach my $wl (@eal4_test::white_list_for_dbus) { | ||
|
||
# Remove the well known names which are in the white list. | ||
delete $dbus_send_results{$wl} if $dbus_send_results{$wl}; | ||
|
Oops, something went wrong.