Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create AWS Security Hub Rules #23206

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
224 commits
Select commit Hold shift + click to select a range
c04d53b
CL:
sebasfalcone Mar 19, 2024
0cf51ec
Rename legacy-template.json
AlexRuiz7 Mar 27, 2024
84b510a
Changes to limit the memory usage in write/read operations with rocksdb.
Dwordcito Mar 30, 2024
00b1d75
Add cna mapping feature.
Dwordcito Apr 2, 2024
91e7364
CL:
sebasfalcone Mar 17, 2024
1081744
CL:
sebasfalcone Apr 2, 2024
bbc26ed
Merge pull request #22523 from wazuh/dev-20772-auto-causes-copy-defec…
Dwordcito Apr 2, 2024
7321fb4
Fix unit tests.
Dwordcito Apr 3, 2024
99e7ca8
Add USER_ENABLE_UPDATE_CHECK preloaded var
Selutario Apr 2, 2024
48cd8c2
Update preloaded-vars template
Selutario Apr 3, 2024
f5b4cce
Merge pull request #22684 from wazuh/22681/rename-vd-index-template
Dwordcito Apr 3, 2024
ce833f3
Improving indexerConnector logging
pereyra-m Apr 3, 2024
9d37705
Merge pull request #22682 from wazuh/dev-22532-worker-fails-to-initia…
Dwordcito Apr 3, 2024
5b09573
- Add unit tests
Dwordcito Apr 3, 2024
528196b
Add requested changes.
Dwordcito Apr 3, 2024
e59e2a0
- Fix invalid call during reload json maps.
Dwordcito Apr 4, 2024
8853bfb
Merge pull request #22719 from wazuh/enhancement/22706-update-check-p…
Selutario Apr 4, 2024
b1a79a2
Update error remediation message
GGP1 Apr 4, 2024
94cacab
Update log level
Damian-Mangold Apr 4, 2024
68435a5
Merge pull request #22693 from wazuh/fix/22581-fix-memory-management-…
Dwordcito Apr 4, 2024
780d1de
Merge pull request #22737 from wazuh/dev-22721-reduce-verbosity-loggi…
Dwordcito Apr 4, 2024
06936d6
CL:
GabrielEValenzuela Mar 26, 2024
ff62168
CL:
GabrielEValenzuela Mar 27, 2024
e20431f
CL:
GabrielEValenzuela Mar 27, 2024
67b65fc
CL:
GabrielEValenzuela Mar 28, 2024
5df1bd0
CL:
GabrielEValenzuela Mar 29, 2024
a366f29
CL:
GabrielEValenzuela Mar 29, 2024
454ee64
CL:
GabrielEValenzuela Apr 1, 2024
0a3edce
CL:
GabrielEValenzuela Apr 1, 2024
d3bf835
CL:
sebasfalcone Apr 2, 2024
42627d8
CL:
sebasfalcone Apr 2, 2024
aca9519
CL:
sebasfalcone Apr 3, 2024
9a1122c
CL:
sebasfalcone Apr 3, 2024
1f516be
CL:
sebasfalcone Apr 3, 2024
5d90aac
CL:
sebasfalcone Apr 3, 2024
9a5617d
CL:
sebasfalcone Apr 4, 2024
9e1a607
- Add unit tests.
Dwordcito Apr 5, 2024
1e94246
Merge pull request #22687 from wazuh/enhancement/22477_implement-tran…
Dwordcito Apr 5, 2024
8ab3829
chore: bump revision to 40807
MarcelKemp Apr 5, 2024
d7ee782
Merge pull request #22752 from wazuh/maintenance/22750-bump-revision
MarcelKemp Apr 5, 2024
8410811
CL:
sebasfalcone Apr 5, 2024
5cffd2d
CL:
sebasfalcone Apr 5, 2024
4c82ef9
CL:
sebasfalcone Apr 5, 2024
dbd1b50
Synchronous configuration of the db is changed
nmkoremblum Apr 5, 2024
b8599be
Unit tests added
nmkoremblum Apr 5, 2024
e60f7a7
Update http-request (#22756)
tsarquis88 Apr 5, 2024
0523860
CL:
sebasfalcone Apr 5, 2024
54faa12
CL:
sebasfalcone Apr 8, 2024
e4dde89
Merge pull request #22736 from wazuh/fix/22692-experimental-features-…
Selutario Apr 8, 2024
ae7f49d
- Fix offset update condition.
Dwordcito Apr 8, 2024
b68e1ef
Merge pull request #22836 from wazuh/fix/22835-offset-update-error
Dwordcito Apr 8, 2024
367ae4f
Merge pull request #22827 from wazuh/enhancement/22650-populate-packa…
Dwordcito Apr 8, 2024
d313e97
CL:
sebasfalcone Apr 8, 2024
1d9abd8
feat: UT refactoring and function names
cborla Apr 8, 2024
2e4492a
Content Manager - Improve downloaded hash file update mechanism (#22728)
tsarquis88 Apr 8, 2024
fa45c61
CL:
sebasfalcone Apr 9, 2024
25fdf1e
Enable debug mode for the modulesd daemon
GGP1 Apr 9, 2024
7257ddd
Merge pull request #22850 from wazuh/enhancement/22848-excessive-verb…
Dwordcito Apr 9, 2024
24474a2
Update log tests
GGP1 Apr 9, 2024
254190e
CL:
sebasfalcone Apr 9, 2024
810a862
Add indexer API configuration option
GGP1 Apr 3, 2024
8200af7
Add API integration tests
GGP1 Apr 9, 2024
69205d4
Merge pull request #22781 from wazuh/enhancement/22755-fix-coverity-d…
Dwordcito Apr 9, 2024
f85f059
Point `http-request` submodule to v1.0.0 tag (#22858)
tsarquis88 Apr 9, 2024
fba5abb
Merge pull request #22856 from wazuh/fix/22842-ait-modulesd-debug
Selutario Apr 10, 2024
07551d6
Merge pull request #22727 from wazuh/fix/22656-indexer-api-option
Selutario Apr 10, 2024
0615316
Remove --heads flags
GGP1 Apr 10, 2024
0e88920
- Change event queue behavior
Dwordcito Apr 4, 2024
0a12876
- Add const for some methods.
Dwordcito Apr 4, 2024
6a0c55e
- Minor changes to fix qa tests.
Dwordcito Apr 5, 2024
5e863f2
- Add delayed queue with cfg partition and persistence.
Dwordcito Apr 11, 2024
6a4c4c6
Merge pull request #22774 from wazuh/22753-change-db-synchronous-mode
vikman90 Apr 11, 2024
862daaf
Add Agent-Name header on CTI HTTP queries (#22780)
tsarquis88 Apr 11, 2024
8e9f3a5
It uses the openssl EVP_XX API instead of the deprecated SHA1_xx API.
Nicogp Apr 11, 2024
1305fd8
Fix Doxygen things and add more tests.
Dwordcito Apr 11, 2024
caa1240
Fix QA tests, now redhat vulnerabilities have epoch
Dwordcito Apr 11, 2024
c568c38
Add tests for postpone feature.
Dwordcito Apr 11, 2024
3bd1106
Add test for more coverage.
Dwordcito Apr 12, 2024
94f3aa1
Merge pull request #22881 from wazuh/fix/22875-qa-installation-fetch-…
Selutario Apr 12, 2024
f0d7be4
Rollback CentOS Linux 8 SCA to previous version in 4.7.3
jk-olaoluwa Apr 12, 2024
794bf40
Rollback RHEL 8 SCA to previous version in 4.7.3
jk-olaoluwa Apr 12, 2024
590729c
Rollback RHEL 9 SCA to previous version in 4.7.3
jk-olaoluwa Apr 12, 2024
177df59
Update cis_amazon_linux_2.yml
Johnng007 Apr 12, 2024
61b759e
Update cis_sles15_linux.yml
Johnng007 Apr 12, 2024
56d7463
Update cis_win10_enterprise.yml
Johnng007 Apr 12, 2024
2d45d1d
Update cis_win11_enterprise.yml
Johnng007 Apr 12, 2024
538846f
Update cis_apple_macOS_13.x.yml
Johnng007 Apr 12, 2024
349c709
CL:
sebasfalcone Apr 10, 2024
41a8e23
CL:
sebasfalcone Apr 10, 2024
fb50779
CL:
sebasfalcone Apr 10, 2024
44e46df
CL:
sebasfalcone Apr 10, 2024
5a47ab6
CL:
sebasfalcone Apr 11, 2024
50cdee3
CL:
sebasfalcone Apr 11, 2024
bc44270
CL:
sebasfalcone Apr 12, 2024
d62e4cf
Merge pull request #22914 from wazuh/enhacement/22913-bump-vd-databas…
Dwordcito Apr 12, 2024
e44a2c2
Fix coverity issues.
Dwordcito Apr 13, 2024
e20b4d9
Fix other coverity issues.
Dwordcito Apr 13, 2024
500f28b
CL:
sebasfalcone Apr 13, 2024
33bcf08
Merge pull request #22920 from wazuh/fix/22918-typo-on-vd-database-ge…
Dwordcito Apr 13, 2024
c422419
Fix UT cases factory orchestrator
MiguelazoDS Apr 5, 2024
9da4123
Avoid duplicate classes by using templatized argument
MiguelazoDS Apr 13, 2024
ca7e924
Rollback Red Hat Enterprise Linux 7 SCA to previous version in 4.7.3
IsExec Apr 14, 2024
1333c8c
Rollback Debian Linux 10 SCA to previous version in 4.7.3
IsExec Apr 14, 2024
0463bc9
Rollback Ubuntu Linux 18.04 SCA to previous version in 4.7.3
IsExec Apr 14, 2024
60de0d6
Rollback CentOS 7 Linux SCA to previous version in 4.7.3
jk-olaoluwa Apr 15, 2024
9f1aea3
Requested review changes.
Dwordcito Apr 15, 2024
9d8ef17
Improve log message
Damian-Mangold Apr 15, 2024
539d668
Rollback Debian Linux 8 SCA to previous version in 4.7.3
IsExec Apr 15, 2024
1a2a988
Fix qa test
Damian-Mangold Apr 15, 2024
b440421
Fix qa test
Damian-Mangold Apr 15, 2024
e485645
Update src/wazuh_modules/vulnerability_scanner/tests/unit/factoryOrch…
MiguelazoDS Apr 15, 2024
addea65
Use enum
MiguelazoDS Apr 15, 2024
a61feb8
Merge pull request #22930 from wazuh/dev-22928-improve-offline-downlo…
Dwordcito Apr 15, 2024
b6d2452
Add requested changes.
Dwordcito Apr 16, 2024
abe4957
CL:
sebasfalcone Apr 9, 2024
2e5d51a
Merge pull request #22941 from wazuh/enhancement/add-flatbuffer-parse…
Dwordcito Apr 16, 2024
91d25a6
Merge pull request #22779 from wazuh/enhancement/22139-improve-mock-c…
Dwordcito Apr 16, 2024
f9d211b
added mutex to protect self->table
thejbte Apr 16, 2024
2153cb2
Fix QA tests based on the latest changes in the content.
Dwordcito Apr 16, 2024
cb5f711
Increase waiting time for publishing
MiguelazoDS Apr 17, 2024
de0a048
Merge pull request #22960 from wazuh/enhancement/22223-indexer-connec…
Dwordcito Apr 17, 2024
a064a61
Add test and open event queue ASAP.
Dwordcito Apr 17, 2024
f5e08e4
Add missing doxygen parameter in FHB.
Dwordcito Apr 17, 2024
c749d69
Changes in w_get_hash_context to return a copy of the current context…
Nicogp Apr 18, 2024
c6aa2be
Fixes test_sha1_op UTs.
Nicogp Apr 18, 2024
cb4f14f
Merge pull request #22731 from wazuh/17901-define-all-vulnerability-d…
Dwordcito Apr 18, 2024
b08ee49
Merge pull request #22938 from wazuh/22886-rollback-sca-rework-change…
havidarou Apr 18, 2024
d831749
build: bump version to v4.7.4
MarcelKemp Apr 18, 2024
5c63c1a
Logcollector:
Nicogp Apr 18, 2024
ec00aa1
Merge pull request #22982 from wazuh/maintenance/bump-version-4.7.4
MarcelKemp Apr 18, 2024
6a9e793
fix: clean up agents labels
cborla Apr 16, 2024
6b1dd0d
test: add wdb upgrade unit test
cborla Apr 17, 2024
a3eab05
New configuration file for downloading snapshots only
Damian-Mangold Apr 17, 2024
8aa1a5b
Use and validation of updater configuration
Damian-Mangold Apr 17, 2024
9e7ecfc
Add new test to validate the updater configuration
Damian-Mangold Apr 17, 2024
2e6db74
Update configuration file to download only the snapshot of the CTI feed
Damian-Mangold Apr 17, 2024
52d3db1
Apply changes after review. CL:
Damian-Mangold Apr 18, 2024
7d1e54f
Apply 4.8.0 fix to hello timeout error
fdalmaup Apr 18, 2024
95d561e
CL:
sebasfalcone Apr 18, 2024
723b4dd
Merge pull request #22972 from wazuh/dev-22953-disable-cti-offset-dow…
Dwordcito Apr 18, 2024
a2cb070
CL:
sebasfalcone Apr 18, 2024
32cd27b
Refactor some rescan chain and specialize classes.
Dwordcito Mar 13, 2024
4396d58
Add changes to rescan in the delayed queue.
Dwordcito Apr 16, 2024
fa1486d
Fix unit tests.
Dwordcito Apr 19, 2024
11ef30c
Fix some thing founded in peer review with @GabrielEValenzuela
Dwordcito Apr 19, 2024
0f4032c
Fix FHB documentation.
Dwordcito Apr 19, 2024
3deeb6e
Merge pull request #22991 from wazuh/enhancement/22873-update-transla…
Dwordcito Apr 19, 2024
19281b4
Add unit tests.
Dwordcito Apr 19, 2024
8bddc6b
Merge pull request #22933 from wazuh/22925-clean-up-agents-labels-dur…
vikman90 Apr 19, 2024
067f83e
docs: Update changelog for 4.7.4
vikman90 Apr 19, 2024
dcd9ddc
Merge pull request #22917 from wazuh/22486-re-scan-of-operative-syste…
Dwordcito Apr 19, 2024
266f9ea
build: bump revision to 40808
JcabreraC Apr 19, 2024
cc89f68
Merge pull request #23001 from wazuh/maintenance/22999_Issue-bump-rev…
JcabreraC Apr 19, 2024
4bd08e1
Modify unit tests
fdalmaup Apr 19, 2024
1f86f14
Merge pull request #22994 from wazuh/fix/22926-hello-command-timeout
Selutario Apr 19, 2024
9fb1c5e
Remove unwanted fields for dbsync_network_address table
MiguelazoDS Apr 17, 2024
e5d2634
Fix UT cases
MiguelazoDS Apr 18, 2024
bfdb635
update wazuh-http-request library
Damian-Mangold Apr 19, 2024
ce08118
Merge pull request #22971 from wazuh/enhancement/21459-network-addres…
Dwordcito Apr 19, 2024
60a48dc
Merge pull request #23009 from wazuh/dev-23008-update-wazuh-http-requ…
Dwordcito Apr 19, 2024
af15860
SHA1 function migration: -Fixes the compilation for Windows.
Nicogp Apr 19, 2024
92d95f8
Add component test to check the behavior of the enable-disable config…
Dwordcito Apr 22, 2024
44b97ea
Reading packages in all selected stages
pereyra-m Apr 22, 2024
111233a
Improving comment
pereyra-m Apr 22, 2024
08eafb1
Exclude containerd folders from Rootcheck scan
vikman90 Nov 21, 2023
ebbee71
SHA1 function migration: fixes test_initialize_file_diff_data_abspath…
Nicogp Apr 22, 2024
8fad746
CL:
sebasfalcone Apr 22, 2024
5ec0114
Making the comment more clear
pereyra-m Apr 22, 2024
e9e6e71
Merge pull request #23018 from wazuh/enhancement/23017-component-test…
Dwordcito Apr 22, 2024
fae15e5
Merge pull request #23019 from wazuh/21909-syscollector-does-not-coll…
Dwordcito Apr 22, 2024
0a91306
Merge pull request #23004 from wazuh/change/958-rootcheck-config
vikman90 Apr 23, 2024
32dcfcf
Merge pull request #22995 from wazuh/change/22695-changelog
vikman90 Apr 23, 2024
c249a4d
build: bump revision to 40716
vikman90 Apr 23, 2024
adda45a
Merge pull request #23081 from wazuh/change/23079-bump-revision
vikman90 Apr 23, 2024
d4fdf60
CL:
sebasfalcone Apr 23, 2024
2f51892
CL:
sebasfalcone Apr 23, 2024
f5a9456
CL:
sebasfalcone Apr 23, 2024
835a045
fixed race condition between hash_begin and hash_add
thejbte Apr 23, 2024
2916579
CL:
sebasfalcone Apr 23, 2024
1bd74e8
Merge pull request #23091 from wazuh/fix/23090-vd-database-generation…
Dwordcito Apr 24, 2024
443c3be
Merge pull request #23088 from wazuh/fix/22650-populate-packages-obje…
Dwordcito Apr 24, 2024
6e6dc94
Adds "ignore" section as a list in localfile JSON.
RamosFe Apr 24, 2024
ec2796e
SHA1 function migration: revert changes from the w_get_hash_context f…
Nicogp Apr 24, 2024
8372d70
fixed unit tests
thejbte Apr 24, 2024
8861902
Merge pull request #22987 from wazuh/bug/21562-race-condition-remoted
TomasTurina Apr 24, 2024
ca3c64a
CL:
sebasfalcone Apr 24, 2024
de28809
Merge pull request #23123 from wazuh/fix/23122-missing-dependency-on-…
Dwordcito Apr 25, 2024
7d07f04
fix validation logic
Damian-Mangold Apr 24, 2024
41e6601
add new test to check the http validation
Damian-Mangold Apr 24, 2024
9c4d8e8
Merge pull request #23117 from wazuh/dev-23116-URL-validation-error-i…
Dwordcito Apr 25, 2024
163eddc
build: bump revision to 40717
MarcelKemp Apr 25, 2024
f094086
Merge pull request #23130 from wazuh/maintenance/23127-bump-revision
MarcelKemp Apr 25, 2024
5d112bb
CL:
GabrielEValenzuela Apr 22, 2024
042bfbc
CL:
GabrielEValenzuela Apr 23, 2024
68e7c4f
CL:
GabrielEValenzuela Apr 23, 2024
acb3091
CL:
GabrielEValenzuela Apr 24, 2024
5500e37
CL:
GabrielEValenzuela Apr 25, 2024
b2290a6
CL:
GabrielEValenzuela Apr 25, 2024
9b7e886
SHA1 function migration: Checks if context is null in the OS_SHA1_Fil…
Nicogp Apr 25, 2024
f898f3a
Merge pull request #23120 from wazuh/fix/23095-localfile-ignore-section
Selutario Apr 26, 2024
b985989
CL:
GabrielEValenzuela Apr 26, 2024
6d378c9
Merge pull request #22974 from wazuh/fix/21565-migrate-deprecated-sha…
TomasTurina Apr 26, 2024
755ddbd
Merge pull request #23075 from wazuh/bug/23064-improve-loggin-socketd…
Dwordcito Apr 26, 2024
543896a
CL:
sebasfalcone Apr 26, 2024
7f0ad45
Merge pull request #23151 from wazuh/enhancement/23150-align-vulnerab…
Dwordcito Apr 26, 2024
68ce597
fix: downgrade macOS image version for scan-build test
vikman90 Apr 29, 2024
7acd80a
Merge pull request #23178 from wazuh/fix/23176-scan-build-macos
vikman90 Apr 29, 2024
f7c8a11
fix: improve xml parser
cborla Apr 26, 2024
cfd1cab
fix: add extra unit tests for xml parser
cborla Apr 26, 2024
68b8f73
CL:
GabrielEValenzuela Apr 29, 2024
737fe1b
CL:
GabrielEValenzuela Apr 29, 2024
0086780
Merge pull request #23183 from wazuh/bug/17025-fix_coverity_syscollec…
Dwordcito Apr 29, 2024
0f9cea9
Merge pull request #23182 from wazuh/enhancement/19464_improve_window…
Dwordcito Apr 29, 2024
bd4982f
Merge branch '4.7.4' into merge-4.7.4-into-4.8.0
vikman90 Apr 30, 2024
1d8ed30
Merge pull request #20448 from wazuh/16386-additional-xml-validation
vikman90 Apr 30, 2024
fe72bb5
Merge pull request #23190 from wazuh/merge-4.7.4-into-4.8.0
MarcelKemp Apr 30, 2024
56e8a3d
Merge branch '4.8.0' into merge-4.8.0-into-4.9.0
MarcelKemp Apr 30, 2024
f527538
fix: downgrade macOS image version for ITs
MarcelKemp Apr 30, 2024
c5d4eac
test: expect synchronous=NORMAL at global database
vikman90 Apr 30, 2024
f4de366
Merge pull request #23191 from wazuh/merge-4.8.0-into-4.9.0
vikman90 Apr 30, 2024
f5d70dc
AWS security hub default ruleset
IsExec May 1, 2024
ea5a833
AWS Security hub updated
IsExec May 1, 2024
aa94811
Updated AWS security hub rules
IsExec May 2, 2024
fa0498a
Create aws_security_hub.ini
IsExec May 2, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
37 changes: 37 additions & 0 deletions .github/actions/vulnerability_scanner/compile/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: "Vulnerability Scanner Content generation"
description: "Executes the vulnerability scanner tools to generate the content and compress it."

runs:
using: "composite"
steps:
# Dependencies
- name: Project dependencies
uses: ./.github/actions/vulnerability_scanner_deps

# Router
- name: Router - Compilation
uses: ./.github/actions/compile_and_test
with:
path: src/shared_modules/router
test: false

# Indexer connector
- name: Indexer connector - Compilation
uses: ./.github/actions/compile_and_test
with:
path: src/shared_modules/indexer_connector
test: false

# Content manager
- name: Content manager - Compilation
uses: ./.github/actions/compile_and_test
with:
path: src/shared_modules/content_manager
test: false

# Vulnerability scanner
- name: Vulnerability scanner - Compilation
uses: ./.github/actions/compile_and_test
with:
path: src/wazuh_modules/vulnerability_scanner
test: false
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
name: "Vulnerability Scanner Content generation"
description: "Executes the vulnerability scanner tools to generate the content and compress it."

inputs:
vulnerability_scanner_path:
required: true
description: "Path to the vulnerability scanner tool"
default: src/wazuh_modules/vulnerability_scanner/build/testtool/scanner/vd_scanner_testtool

config_path:
required: true
description: "Path to the configuration file"
default: src/wazuh_modules/vulnerability_scanner/testtool/scanner/config.content_generation.json

indexer_template_path:
required: true
description: "Path to the indexer template file"
default: src/wazuh_modules/vulnerability_scanner/indexer/template/index-template.json

wazuh_version:
required: true
description: "Identifier for the generated content. The content will be compressed into a file named 'vd_1.0.0_vd_<wazuh_version>.tar.xz'"

runs:
using: "composite"
steps:
- name: Generate Vulnerability Scanner Content
run: |
VULNERABILITY_SCANNER_PATH=./${{ inputs.vulnerability_scanner_path }}
CONFIG_PATH=${{ inputs.config_path }}
TEMPLATE_PATH=${{ inputs.indexer_template_path }}

#TODO: Remove this logic once 4.8.0 is merged into master
if [ ! -f "${TEMPLATE_PATH}" ]; then
TEMPLATE_PATH=src/wazuh_modules/vulnerability_scanner/indexer/template/legacy-template.json
fi
# END TODO

if [ ! -f "${VULNERABILITY_SCANNER_PATH}" ]; then
echo "Error: The file '${VULNERABILITY_SCANNER_PATH}' does not exist."
exit 1
fi

if [ ! -f "${CONFIG_PATH}" ]; then
echo "Error: The file '${CONFIG_PATH}' does not exist."
exit 1
fi

if [ ! -f "${TEMPLATE_PATH}" ]; then
echo "Error: The file '${TEMPLATE_PATH}' does not exist."
exit 1
fi

echo "Running '${TEST_TOOL_PATH}'..."
${VULNERABILITY_SCANNER_PATH} -c ${CONFIG_PATH} -t ${TEMPLATE_PATH} -d
shell: bash

- name: Compress Vulnerability Scanner Content
run: |
rm -rf queue/indexer
rm -rf queue/sockets
rm -rf queue/router
rm -rf queue/vd_updater/tmp
rm -rf queue/vd/reports
rm -rf queue/vd/sync
rm -rf queue/vd/deltas
rm -rf queue/vd/state_track
rm -rf queue/keystore

VD_FILENAME=vd_1.0.0_vd_${{ inputs.wazuh_version }}.tar.xz

echo "Compressing into '${VD_FILENAME}' ..."
tar -cJf ${VD_FILENAME} --owner=0 --group=0 --no-same-owner --no-same-permissions queue

if [ ! -f "${VD_FILENAME}" ]; then
echo "Error: The file '${VD_FILENAME}' doesn't exist or could not be generated."
exit 1
else
echo "File '${VD_FILENAME}' generated successfully."
echo "Size of '${VD_FILENAME}': $(du -h "${VD_FILENAME}" | cut -f1)"
fi
shell: bash
6 changes: 6 additions & 0 deletions .github/actions/vulnerability_scanner_deps/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ runs:
# Update packages
sudo apt-get update
sudo apt-get install -y cmake

- name: General dependencies
shell: bash
run: |
sudo apt-get update
sudo apt-get install -y libc6-dbg

- name: Build external deps
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/integration-tests-analysisd-tier-0-1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ jobs:
# Download and install integration tests framework.
- name: Download and install integration tests framework
run: |
if [ "X`git ls-remote --heads https://github.com/wazuh/qa-integration-framework.git ${BRANCH_NAME}`" != "X" ]; then
if [ "X`git ls-remote https://github.com/wazuh/qa-integration-framework.git ${BRANCH_NAME}`" != "X" ]; then
QA_BRANCH=${BRANCH_NAME}
elif [ "X`git ls-remote --heads https://github.com/wazuh/qa-integration-framework.git ${BRANCH_BASE}`" != "X" ]; then
elif [ "X`git ls-remote https://github.com/wazuh/qa-integration-framework.git ${BRANCH_BASE}`" != "X" ]; then
QA_BRANCH=${BRANCH_BASE}
else
QA_BRANCH="main"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/integration-tests-analysisd-tier-2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ jobs:
# Download and install integration tests framework.
- name: Download and install integration tests framework
run: |
if [ "X`git ls-remote --heads https://github.com/wazuh/qa-integration-framework.git ${BRANCH_NAME}`" != "X" ]; then
if [ "X`git ls-remote https://github.com/wazuh/qa-integration-framework.git ${BRANCH_NAME}`" != "X" ]; then
QA_BRANCH=${BRANCH_NAME}
elif [ "X`git ls-remote --heads https://github.com/wazuh/qa-integration-framework.git ${BRANCH_BASE}`" != "X" ]; then
elif [ "X`git ls-remote https://github.com/wazuh/qa-integration-framework.git ${BRANCH_BASE}`" != "X" ]; then
QA_BRANCH=${BRANCH_BASE}
else
QA_BRANCH="main"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/integration-tests-api-tier-0-1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ jobs:
# Download and install integration tests framework.
- name: Download and install integration tests framework
run: |
if [ "X`git ls-remote --heads https://github.com/wazuh/qa-integration-framework.git ${BRANCH_NAME}`" != "X" ]; then
if [ "X`git ls-remote https://github.com/wazuh/qa-integration-framework.git ${BRANCH_NAME}`" != "X" ]; then
QA_BRANCH=${BRANCH_NAME}
elif [ "X`git ls-remote --heads https://github.com/wazuh/qa-integration-framework.git ${BRANCH_BASE}`" != "X" ]; then
elif [ "X`git ls-remote https://github.com/wazuh/qa-integration-framework.git ${BRANCH_BASE}`" != "X" ]; then
QA_BRANCH=${BRANCH_BASE}
else
QA_BRANCH="main"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/integration-tests-api-tier-2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ jobs:
# Download and install integration tests framework.
- name: Download and install integration tests framework
run: |
if [ "X`git ls-remote --heads https://github.com/wazuh/qa-integration-framework.git ${BRANCH_NAME}`" != "X" ]; then
if [ "X`git ls-remote https://github.com/wazuh/qa-integration-framework.git ${BRANCH_NAME}`" != "X" ]; then
QA_BRANCH=${BRANCH_NAME}
elif [ "X`git ls-remote --heads https://github.com/wazuh/qa-integration-framework.git ${BRANCH_BASE}`" != "X" ]; then
elif [ "X`git ls-remote https://github.com/wazuh/qa-integration-framework.git ${BRANCH_BASE}`" != "X" ]; then
QA_BRANCH=${BRANCH_BASE}
else
QA_BRANCH="main"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/integration-tests-execd-tier-0-1-lin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ jobs:
# Download and install integration tests framework.
- name: Download and install integration tests framework
run: |
if [ "X`git ls-remote --heads https://github.com/wazuh/qa-integration-framework.git ${BRANCH_NAME}`" != "X" ]; then
if [ "X`git ls-remote https://github.com/wazuh/qa-integration-framework.git ${BRANCH_NAME}`" != "X" ]; then
QA_BRANCH=${BRANCH_NAME}
elif [ "X`git ls-remote --heads https://github.com/wazuh/qa-integration-framework.git ${BRANCH_BASE}`" != "X" ]; then
elif [ "X`git ls-remote https://github.com/wazuh/qa-integration-framework.git ${BRANCH_BASE}`" != "X" ]; then
QA_BRANCH=${BRANCH_BASE}
else
QA_BRANCH="main"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/integration-tests-execd-tier-0-1-win.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@ jobs:
# Download and install integration tests framework.
- name: Download and install qa-integration-framework
run: |
if (git ls-remote --heads https://github.com/wazuh/qa-integration-framework.git $env:BRANCH_NAME) {
if (git ls-remote https://github.com/wazuh/qa-integration-framework.git $env:BRANCH_NAME) {
$QA_BRANCH = $env:BRANCH_NAME
} elseif (git ls-remote --heads https://github.com/wazuh/qa-integration-framework.git $env:BRANCH_BASE) {
} elseif (git ls-remote https://github.com/wazuh/qa-integration-framework.git $env:BRANCH_BASE) {
$QA_BRANCH = $env:BRANCH_BASE
} else {
$QA_BRANCH = "main"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/integration-tests-fim-tier-0-1-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
env:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
BRANCH_BASE: ${{ github.base_ref || inputs.base_branch }}
runs-on: macos-latest
runs-on: macos-13
steps:
- name: Checkout Repo
uses: actions/checkout@v3
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/integration-tests-github-tier-0-1-lin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ jobs:
# Download and install integration tests framework.
- name: Download and install integration tests framework
run: |
if [ "X`git ls-remote --heads https://github.com/wazuh/qa-integration-framework.git ${BRANCH_NAME}`" != "X" ]; then
if [ "X`git ls-remote https://github.com/wazuh/qa-integration-framework.git ${BRANCH_NAME}`" != "X" ]; then
QA_BRANCH=${BRANCH_NAME}
elif [ "X`git ls-remote --heads https://github.com/wazuh/qa-integration-framework.git ${BRANCH_BASE}`" != "X" ]; then
elif [ "X`git ls-remote https://github.com/wazuh/qa-integration-framework.git ${BRANCH_BASE}`" != "X" ]; then
QA_BRANCH=${BRANCH_BASE}
else
QA_BRANCH="main"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/integration-tests-github-tier-0-1-win.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@ jobs:
# Download and install integration tests framework.
- name: Download and install qa-integration-framework
run: |
if (git ls-remote --heads https://github.com/wazuh/qa-integration-framework.git $env:BRANCH_NAME) {
if (git ls-remote https://github.com/wazuh/qa-integration-framework.git $env:BRANCH_NAME) {
$QA_BRANCH = $env:BRANCH_NAME
} elseif (git ls-remote --heads https://github.com/wazuh/qa-integration-framework.git $env:BRANCH_BASE) {
} elseif (git ls-remote https://github.com/wazuh/qa-integration-framework.git $env:BRANCH_BASE) {
$QA_BRANCH = $env:BRANCH_BASE
} else {
$QA_BRANCH = "main"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
env:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
BRANCH_BASE: ${{ github.base_ref || inputs.base_branch }}
runs-on: macos-latest
runs-on: macos-13
steps:
- name: Checkout Repo
uses: actions/checkout@v3
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/integration-tests-msgraph-tier-0-1-lin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ jobs:
# Download and install integration tests framework.
- name: Download and install integration tests framework
run: |
if [ "X`git ls-remote --heads https://github.com/wazuh/qa-integration-framework.git ${BRANCH_NAME}`" != "X" ]; then
if [ "X`git ls-remote https://github.com/wazuh/qa-integration-framework.git ${BRANCH_NAME}`" != "X" ]; then
QA_BRANCH=${BRANCH_NAME}
elif [ "X`git ls-remote --heads https://github.com/wazuh/qa-integration-framework.git ${BRANCH_BASE}`" != "X" ]; then
elif [ "X`git ls-remote https://github.com/wazuh/qa-integration-framework.git ${BRANCH_BASE}`" != "X" ]; then
QA_BRANCH=${BRANCH_BASE}
else
QA_BRANCH="main"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ jobs:
# Download and install integration tests framework.
- name: Download and install integration tests framework
run: |
if [ "X`git ls-remote --heads https://github.com/wazuh/qa-integration-framework.git ${BRANCH_NAME}`" != "X" ]; then
if [ "X`git ls-remote https://github.com/wazuh/qa-integration-framework.git ${BRANCH_NAME}`" != "X" ]; then
QA_BRANCH=${BRANCH_NAME}
elif [ "X`git ls-remote --heads https://github.com/wazuh/qa-integration-framework.git ${BRANCH_BASE}`" != "X" ]; then
elif [ "X`git ls-remote https://github.com/wazuh/qa-integration-framework.git ${BRANCH_BASE}`" != "X" ]; then
QA_BRANCH=${BRANCH_BASE}
else
QA_BRANCH="main"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@ jobs:
# Download and install integration tests framework.
- name: Download and install qa-integration-framework
run: |
if (git ls-remote --heads https://github.com/wazuh/qa-integration-framework.git $env:BRANCH_NAME) {
if (git ls-remote https://github.com/wazuh/qa-integration-framework.git $env:BRANCH_NAME) {
$QA_BRANCH = $env:BRANCH_NAME
} elseif (git ls-remote --heads https://github.com/wazuh/qa-integration-framework.git $env:BRANCH_BASE) {
} elseif (git ls-remote https://github.com/wazuh/qa-integration-framework.git $env:BRANCH_BASE) {
$QA_BRANCH = $env:BRANCH_BASE
} else {
$QA_BRANCH = "main"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/integration-tests-rbac-tier-0-1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ jobs:
# Download and install integration tests framework.
- name: Download and install integration tests framework
run: |
if [ "X`git ls-remote --heads https://github.com/wazuh/qa-integration-framework.git ${BRANCH_NAME}`" != "X" ]; then
if [ "X`git ls-remote https://github.com/wazuh/qa-integration-framework.git ${BRANCH_NAME}`" != "X" ]; then
QA_BRANCH=${BRANCH_NAME}
elif [ "X`git ls-remote --heads https://github.com/wazuh/qa-integration-framework.git ${BRANCH_BASE}`" != "X" ]; then
elif [ "X`git ls-remote https://github.com/wazuh/qa-integration-framework.git ${BRANCH_BASE}`" != "X" ]; then
QA_BRANCH=${BRANCH_BASE}
else
QA_BRANCH="main"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ jobs:
# Download and install integration tests framework.
- name: Download and install integration tests framework
run: |
if [ "X`git ls-remote --heads https://github.com/wazuh/qa-integration-framework.git ${BRANCH_NAME}`" != "X" ]; then
if [ "X`git ls-remote https://github.com/wazuh/qa-integration-framework.git ${BRANCH_NAME}`" != "X" ]; then
QA_BRANCH=${BRANCH_NAME}
elif [ "X`git ls-remote --heads https://github.com/wazuh/qa-integration-framework.git ${BRANCH_BASE}`" != "X" ]; then
elif [ "X`git ls-remote https://github.com/wazuh/qa-integration-framework.git ${BRANCH_BASE}`" != "X" ]; then
QA_BRANCH=${BRANCH_BASE}
else
QA_BRANCH="main"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ jobs:
# Download and install integration tests framework.
- name: Download and install integration tests framework
run: |
if [ "X`git ls-remote --heads https://github.com/wazuh/qa-integration-framework.git ${BRANCH_NAME}`" != "X" ]; then
if [ "X`git ls-remote https://github.com/wazuh/qa-integration-framework.git ${BRANCH_NAME}`" != "X" ]; then
QA_BRANCH=${BRANCH_NAME}
elif [ "X`git ls-remote --heads https://github.com/wazuh/qa-integration-framework.git ${BRANCH_BASE}`" != "X" ]; then
elif [ "X`git ls-remote https://github.com/wazuh/qa-integration-framework.git ${BRANCH_BASE}`" != "X" ]; then
QA_BRANCH=${BRANCH_BASE}
else
QA_BRANCH="main"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/scan-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
run: exit 1

scan-build-macos-agent:
runs-on: macos-latest
runs-on: macos-13
steps:
- uses: actions/checkout@v3
- name: Install dependencies
Expand Down