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

Adapt SCA rulesets to 3.10 syntax #406

Merged
merged 263 commits into from
Aug 20, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
263 commits
Select commit Hold shift + click to select a range
8a60d1b
Fix errors
JuantAldea May 27, 2019
f8a1c82
Adapt RHEL5
JuantAldea May 27, 2019
b502bbf
Fix requirements
JuantAldea May 27, 2019
7eab838
Add missing :
JuantAldea May 27, 2019
2c6344d
Use a more sematically appropriate condition for some checks
JuantAldea May 27, 2019
685c117
Adapt SLES policies
JuantAldea May 27, 2019
d9920e7
Adapt Solaris 11
JuantAldea May 27, 2019
f44be09
Adapt mysql EE
JuantAldea May 27, 2019
d70e588
Fix debian rule
JuantAldea May 28, 2019
3e1510a
Adapt mysql policies
JuantAldea May 28, 2019
5380fde
Adapt Apache policies
JuantAldea May 28, 2019
c6f8dee
Fix apache rule
JuantAldea May 28, 2019
b9084b0
Adapt Darwin 10.11 El Capitan
JuantAldea May 29, 2019
4e7099b
Change one any to an all
JuantAldea May 29, 2019
e6facc3
Adapt Darwin 10.12 Sierra
JuantAldea May 29, 2019
6ddde54
Adapt Darwin 10.13 High Sierra
JuantAldea May 29, 2019
b35bc7e
Rewrite check
JuantAldea May 30, 2019
72ee58e
Simplify some checks
JuantAldea May 30, 2019
796c946
Adapt Microsoft Office 2016 rules
May 30, 2019
b577749
WIP W10 L1, some testing needed
JuantAldea May 31, 2019
2b22180
Adapt Windows 10 L2
JuantAldea Jun 3, 2019
9cb9e04
Adapt cis_win2012r2_domainL2_rcl.yml
JuantAldea Jun 4, 2019
b743b4f
Adapt Windows 2012 L1 L2
Jun 4, 2019
c0e576e
Add newlines to windows/cis_win2012r2_memberL1_rcl.yml
JuantAldea Jun 4, 2019
21573d5
Complete some checks and remove useless rules
Jun 4, 2019
4bc1fee
Adapt Audit rules
Jun 4, 2019
92c7e4c
Remove hexadecimal comparisons
Jun 5, 2019
c28d6b6
Fix some checks on cis_win10_enterprise_L2_rcl.yml
JuantAldea Jun 5, 2019
af5e1c3
Remove trailling whitespaces
JuantAldea Jun 5, 2019
036f0b4
Correct some description messages
JuantAldea Jun 5, 2019
6016b2f
Adapt cis_win2012r2_domainL1_rcl.yml
JuantAldea Jun 5, 2019
cb524cc
Fix some rules
JuantAldea Jun 5, 2019
23bd21b
Remove some ; leftovers
JuantAldea Jun 5, 2019
5b97b82
Fix some HEX rules
JuantAldea Jun 5, 2019
af75b82
Improve comparisons
JuantAldea Jun 5, 2019
96181be
Change hex comparison
JuantAldea Jun 5, 2019
dadc5d6
Remove ; leftovers
JuantAldea Jun 5, 2019
5f6825e
Trimming spaces and ";"
JuantAldea Jun 5, 2019
edd6242
Fix two rules
JuantAldea Jun 5, 2019
3448bc4
Improve rule regex
JuantAldea Jun 5, 2019
ef8ce39
Add newline between checks
JuantAldea Jun 5, 2019
d5776ec
Fix typo in MySQL policy
chemamartinez Jun 5, 2019
d643323
Set proper name for mac web_vulnerabilities file
JuantAldea Jun 5, 2019
c5d79b3
Merge branch '404-adapt-sca-rules-to-new-syntax' of https://github.co…
JuantAldea Jun 5, 2019
08b566d
Fix typos in SCA policies
chemamartinez Jun 5, 2019
c4f023f
Change id
JuantAldea Jun 5, 2019
572107f
Script to map the standards in sca (#421)
AdriiiPRodri Jun 5, 2019
08799af
Merge branch '404-adapt-sca-rules-to-new-syntax' of https://github.co…
JuantAldea Jun 5, 2019
437f9da
Reviewed RHEL7 policy until section 3
chemamartinez Jun 6, 2019
4b2c11a
Adapt cis_debian_linux to use commands
Jun 7, 2019
e0604ab
Adapt Mac Sierra rules to check if program does not exist
Jun 7, 2019
374baf0
Fix some SCA rules for Debian 7-8
cristgl Jun 7, 2019
d3da6ea
Fix some Debian rules
cristgl Jun 7, 2019
0d683d3
Fix and unify some rules with the generic policy
cristgl Jun 10, 2019
49d5fbe
Adapt Mac OS 10.12 rules
Jun 10, 2019
8e4c245
Adapt mac OS El capitan policies
Jun 10, 2019
92425f7
Change rules to match the CIS compliance
Jun 10, 2019
5e870fe
Finish review of CIS policy for RHEL7
chemamartinez Jun 10, 2019
788fb81
Fix chkconfig, ls and some commands that may fail for Debian rules
cristgl Jun 10, 2019
be7ea58
Remove unused variable for RHEL7 policy
chemamartinez Jun 10, 2019
c4bf317
Adapt Solaris 11 CIS policies
Jun 10, 2019
913e8eb
Fix comments and spaces between rules
cristgl Jun 10, 2019
1c9da3f
Fix some Debian rules
cristgl Jun 11, 2019
9a4ded2
Fix SLES 11 rules
cristgl Jun 11, 2019
3890248
Reorder RHEL7 policy IDs
chemamartinez Jun 11, 2019
1ae2e57
Fix generic Debian policy
cristgl Jun 12, 2019
5e92fc7
Merge branch '404-adapt-sca-rules-to-new-syntax' of https://github.co…
JuantAldea Jun 12, 2019
3c8f052
Fix 2 checks of the RHEL7 policy
chemamartinez Jun 12, 2019
58521d7
Merge branch '404-adapt-sca-rules-to-new-syntax' of https://github.co…
JuantAldea Jun 12, 2019
2275f8f
Add Debian fixes
cristgl Jun 12, 2019
ff70eff
Fix some Debian rules
cristgl Jun 12, 2019
4382816
Fix some Debian rules
cristgl Jun 12, 2019
7f090e7
Add fixes to Debian L2 policy
cristgl Jun 12, 2019
fe1e05e
Adapt Debian checks id
cristgl Jun 12, 2019
6f0b8d7
Use commands for SUSE12 checks
JuantAldea Jun 12, 2019
cc39e91
Merge branch '404-adapt-sca-rules-to-new-syntax' of https://github.co…
JuantAldea Jun 12, 2019
5b6d849
Fix typo in Debian L2 rules
cristgl Jun 12, 2019
f992e20
Add comment exclusion
JuantAldea Jun 12, 2019
2069e5c
Merge branch '404-adapt-sca-rules-to-new-syntax' of https://github.co…
chemamartinez Jun 12, 2019
0d36e3b
Review MAC OS X policies
chemamartinez Jun 12, 2019
d2f88cf
Fix typo in RHEL7 policy
chemamartinez Jun 12, 2019
d490f95
Review SUSE policies
cristgl Jun 13, 2019
2dbc1ef
Update mysql enterprise SCA rules
Jun 13, 2019
a26b601
Remove quotes from mySQL policy
Jun 13, 2019
3ffe186
Adapt mysql Community policy
Jun 13, 2019
9f9aff7
Remove quotes from grep
JuantAldea Jun 14, 2019
d998860
Remove quotes from grep and move -R parameter
JuantAldea Jun 14, 2019
6a3729f
Change RHEL6 policy to use commands
JuantAldea Jun 14, 2019
79ff354
Review Windows 2012 R2 policies
cristgl Jun 14, 2019
cd33d95
Review Win2012R2 Domain L1 policies
cristgl Jun 17, 2019
21c7dae
Review Win2012R2 Domain L2 policies
cristgl Jun 17, 2019
1123517
Fix typo
cristgl Jun 17, 2019
10bd047
Fix Debian rule with '
cristgl Jun 17, 2019
f01f594
Fix typo
cristgl Jun 17, 2019
4fd48cf
First review for Win2012 R2 Member L1 policies
cristgl Jun 17, 2019
db1758b
Adapt Apache policy
Jun 18, 2019
bc75ae2
Review every Windows 2012 R2 policy
cristgl Jun 18, 2019
ca40ca6
Review Windows 2012 R2 policies
cristgl Jun 18, 2019
eef31c8
Review win_audit_rcl policy
cristgl Jun 18, 2019
bfb1c8b
Updated Win 10 Enterprise L1 from 1.4 to 1.5
Jun 19, 2019
086808e
Udpate Win10 L1 id number
Jun 19, 2019
aca8896
Change some checks to the other file, depending if they are L1 or L2
cristgl Jun 19, 2019
0e458fe
Revert "Change some checks to the other file, depending if they are L…
cristgl Jun 19, 2019
2400f64
Fix typo
cristgl Jun 19, 2019
eeb72d5
Add changes for Domain L1 and L2 policies
cristgl Jun 19, 2019
918bd82
Updated RHEL5
JuantAldea Jun 19, 2019
a9bc238
RHEL: grep -R -> grep -Rh
JuantAldea Jun 19, 2019
7f130b1
Merge branch '404-adapt-sca-rules-to-new-syntax' of https://github.co…
JuantAldea Jun 19, 2019
07005f9
SLES: grep -R -> grep -Rh
JuantAldea Jun 19, 2019
1002042
Applications: grep -R -> grep -Rh
JuantAldea Jun 19, 2019
13fd1d5
Fix tcp_sync rules
JuantAldea Jun 19, 2019
6e8909e
Fix numbering
JuantAldea Jun 19, 2019
a2daa34
Fix Debian policies - uncomplete
chemamartinez Jun 19, 2019
fdfe9c2
Fix rules
JuantAldea Jun 21, 2019
7ee1730
Fix rules
JuantAldea Jun 21, 2019
d73da1d
Fix rhel symbolic links
Jun 24, 2019
88f6394
Fix SLES rule
JuantAldea Jun 24, 2019
6b2dec4
Merge branch '404-adapt-sca-rules-to-new-syntax' of https://github.co…
JuantAldea Jun 24, 2019
b490322
Fix rules
JuantAldea Jun 24, 2019
1fd1382
Revert "Fix rhel symbolic links"
Jun 24, 2019
53ee030
Add registry folder check
Jun 24, 2019
02c3214
Add review for Win 10 Enterprise L2 policy
cristgl Jun 24, 2019
f69fb50
Generalize some RHEL6 rules & fix others
JuantAldea Jun 24, 2019
622f51f
Merge branch '404-adapt-sca-rules-to-new-syntax' of https://github.co…
JuantAldea Jun 24, 2019
aa1ba67
Add review for policy Win10 Enterprise L1
cristgl Jun 25, 2019
677e461
Fix %SYSTEMROOT% checks for Windows 2012 R2
cristgl Jun 25, 2019
34e6d2b
Adapt generic Windows checks to other policies
cristgl Jun 25, 2019
3d0394a
Change some Solaris rules
Jun 25, 2019
e1f4924
Fixing CIS Debian 7-8 policy
chemamartinez Jun 25, 2019
f4c107d
Check Office 2016 policy
cristgl Jun 26, 2019
1df82b3
Fix GRUB rule for RHEL7
JuantAldea Jun 26, 2019
01860fd
Add chrony check to RHEL7
JuantAldea Jun 26, 2019
af518eb
Review system audit password policies
cristgl Jun 26, 2019
06445f2
Review system_audit_ssh policy
cristgl Jun 26, 2019
4cc9ab7
Fixed SCA policies for Debian 8
chemamartinez Jun 26, 2019
8d7741e
Renamed Debian 8 policies
chemamartinez Jun 26, 2019
fe19cab
Fix empty condition in El Capitan policy
Jun 26, 2019
9d3331a
Add SCA policies for Debian 7
chemamartinez Jun 26, 2019
17dc6d5
Fix some ssh rules
cristgl Jun 27, 2019
d29a276
Review web_vulnerabilities policy
cristgl Jun 27, 2019
e2d4baf
Review Debian 8 policy
cristgl Jun 27, 2019
0573967
SLES12 make some checks less false-positive prone
JuantAldea Jun 27, 2019
e519d40
Fix SLES11 rules
JuantAldea Jun 27, 2019
b323902
Merge branch '404-adapt-sca-rules-to-new-syntax' of https://github.co…
JuantAldea Jun 27, 2019
1b46d9b
Add rule for chrony and some references
cristgl Jun 27, 2019
f9346be
Update of Debian 7 policies and some minor fixes
chemamartinez Jun 27, 2019
7d51a99
Add Debian 9 checks
cristgl Jun 28, 2019
5c42df9
Change compliance format
Jun 28, 2019
5f72c29
Updated Debian 7 L1
chemamartinez Jun 28, 2019
306b3a8
Fix Debian 8 check IDs, add L2 check for SSH X11 forwarding and fix e…
cristgl Jun 28, 2019
c2a3ab0
Fix some expiration days rules and replaced some remediation fields
cristgl Jun 28, 2019
f73ff6c
Adjust Debian 7 L1 IDs
chemamartinez Jun 28, 2019
c01b4a3
Fix incorrect variable
cristgl Jul 1, 2019
89ab4d8
Fix password requirements rule
cristgl Jul 1, 2019
5e32c61
Fix rules about aide and warning banner
cristgl Jul 1, 2019
4cd8e40
Fix local warning banner rules
cristgl Jul 1, 2019
e3325cf
Fix rules
JuantAldea Jul 1, 2019
dcc5813
Merge branch '404-adapt-sca-rules-to-new-syntax' of https://github.co…
JuantAldea Jul 1, 2019
3027855
Fix some rules for Debian 8 and 9 L2
cristgl Jul 1, 2019
75da5db
Add support for Amazon Linux 2
JuantAldea Jul 1, 2019
eb69fe2
Merge branch '404-adapt-sca-rules-to-new-syntax' of https://github.co…
JuantAldea Jul 1, 2019
5a8a8da
Remove _rcl from filenames
JuantAldea Jul 2, 2019
b6f8377
Correct case on titles
JuantAldea Jul 2, 2019
e5d9efd
Remove _rcl from files
JuantAldea Jul 2, 2019
85ff277
Remove darwin/web_vulnerabilities.yml
JuantAldea Jul 2, 2019
0fec9c9
Move web_vulnerabilities.yml to applications
JuantAldea Jul 2, 2019
76f8ea7
Add support for Amazon Linux 1 (AMI)
JuantAldea Jul 2, 2019
0a0bd21
Remove cis_debian_linux policy
cristgl Jul 2, 2019
df55e27
Add UNIX generic policy
Jul 2, 2019
041d0ee
Add variables to Unix policy
Jul 2, 2019
654e26e
Add more generic checks to the win_audit_rcl policy
cristgl Jul 2, 2019
93a1711
Change compliance format and add check
Jul 2, 2019
40ca279
Remove old generic policies
Jul 2, 2019
6385607
Fix typo
cristgl Jul 3, 2019
ad5ab62
Add new checks for generic Windows policy
cristgl Jul 3, 2019
042132f
Change name for generic policies
cristgl Jul 3, 2019
0a530f2
Fix some typos
cristgl Jul 3, 2019
5c1548d
Change compliance format
Jun 28, 2019
b5ed81a
Fix some typos
cristgl Jul 3, 2019
8f96ad6
Fix typo
cristgl Jul 3, 2019
f98057e
Change compliance format
Jun 28, 2019
1480b9a
Fix some typos
cristgl Jul 3, 2019
064faa3
Change compliance format
Jun 28, 2019
5ad33f4
Merge branch 'adapt-compliance' of https://github.com/wazuh/wazuh-rul…
cristgl Jul 3, 2019
f8e8a25
Turn compliance block into list for generic Windows policy
cristgl Jul 3, 2019
9843be0
Remove extra files
cristgl Jul 3, 2019
b8a54fb
Add compliance lists and remove extra checks
cristgl Jul 3, 2019
4d2cc0d
Remove extra checks from Solaris 11
cristgl Jul 3, 2019
83e86a1
Adapt global IDs
cristgl Jul 3, 2019
86981ba
Check HPUX ssh file in variable
Jul 3, 2019
6215c64
Adapt condition and fix some rules
cristgl Jul 4, 2019
c4cc643
Fix typos in mysql policy
Jul 4, 2019
e6aec76
Review failing mysql rules
Jul 4, 2019
0e130f5
Fix title, compliance for Apache policy
cristgl Jul 8, 2019
512261d
Merge branch '404-adapt-sca-rules-to-new-syntax' of https://github.co…
cristgl Jul 8, 2019
a5396c3
Fix some Solaris rules
cristgl Jul 8, 2019
b93bdae
Fix typo in rules whitout spaces
chemamartinez Jul 9, 2019
d10e382
Fix typo in Windows Office policy
chemamartinez Jul 9, 2019
5f5cb6b
Update CIS Apache policy for SCA
chemamartinez Jul 9, 2019
5fc7ff2
Fix policies which cause errors in Wazuh DB
chemamartinez Jul 12, 2019
5443edc
Update HIPAA and NIST 800 53 mapping
crd1985 Jul 15, 2019
f9d0670
Fix condition for Windows rules
cristgl Jul 16, 2019
b9e3346
Fix rules for MySQL policies
chemamartinez Jul 16, 2019
2a3f7f6
Divide Apache variables in apache2 and httpd
Jul 17, 2019
50a1ef5
Fix several checks and typos in SCA policies
chemamartinez Jul 22, 2019
eb1c9b9
Fix Apache policy
chemamartinez Jul 29, 2019
ce82f8a
Update macOS policies
chemamartinez Jul 30, 2019
8e7c685
Update web vulnerabilites policy
chemamartinez Jul 30, 2019
56d3962
Final review of Debian policies
chemamartinez Jul 31, 2019
28d1455
Normalize the location of the variables section
chemamartinez Jul 31, 2019
192dd1a
Fix typo in policies header
chemamartinez Jul 31, 2019
0b4ded5
Final review SCA policies for Unix
chemamartinez Jul 31, 2019
d6e7eee
Final review of RHEL policies
chemamartinez Jul 31, 2019
b736218
Final review of SLES policies
chemamartinez Jul 31, 2019
3d2707e
Update Solaris 11 policy
chemamartinez Jul 31, 2019
317a803
Review SCA Windows generic policy
chemamartinez Jul 31, 2019
fad6d21
Change Solaris processes rules
Aug 1, 2019
be5a678
Fix Solaris syntax
Aug 1, 2019
815c44a
Check svcs and coreadm in Solaris
Aug 6, 2019
18d0c4a
Change the args for svcs
Aug 6, 2019
652dd70
Solaris rules revision after Test: all passed
Aug 6, 2019
7b83b41
Delete Office 2016 SCA policy
chemamartinez Aug 7, 2019
697eb87
Fix typos in Win10 Enterprise L2 SCA policy
chemamartinez Aug 7, 2019
2dc28cb
Add references to cis_win2012r2_domainL2.yml
JuantAldea Aug 7, 2019
ac99c5e
Remove multiple spaces
JuantAldea Aug 7, 2019
3d50606
Add references to cis_win2012r2_memberL1.yml
cristgl Aug 7, 2019
9bd3074
Remove double spaces and add dot to end of line
cristgl Aug 8, 2019
61003cf
Add references to policy Win10_enterprise_L1
Aug 8, 2019
c6e507f
Fix references and other fields for CIS Win10 L2 SCA policy
chemamartinez Aug 8, 2019
0fe924f
Add references to cis_win2012r2_memberL2 and fix typos
carlocas Aug 8, 2019
559ca26
Updated cis_win2012r2_domainL1
Aug 8, 2019
3ad6fc4
Remove multiple spaces in SCA Windows policies
chemamartinez Aug 8, 2019
9840092
Fix typos in Windows policies
chemamartinez Aug 9, 2019
5852a14
Fix unnused negations in rules
chemamartinez Aug 9, 2019
07fced2
Fix SCA Solaris 11 policy
chemamartinez Aug 9, 2019
667cc5f
Fix typo
cristgl Aug 12, 2019
f7476e1
Fix check 13004
Aug 12, 2019
4a26358
Fix Windows policies, replace — and – by -
cristgl Aug 12, 2019
603718d
Improve check 7031
Aug 12, 2019
ebd3442
Fix Win Invalid Rules
Aug 12, 2019
e0613a4
Add missing rule in Solaris SCA policy
chemamartinez Aug 12, 2019
2ba62a2
Update SCA Solaris IDs
chemamartinez Aug 13, 2019
b52c001
Remove two wildcards at the end of the rules
Aug 14, 2019
5a482e5
Fix Web_vuln policy
Aug 14, 2019
ff96651
Remove registry existence comprobation from SCA Windows policies
Aug 16, 2019
09567e0
Remove registry checks from generic policy and win2012r2_memberL2
cristgl Aug 16, 2019
783206f
Remove strange character which skips policy
cristgl Aug 16, 2019
2074ffc
Extend information on default paths for web_vuln policy
Aug 19, 2019
edf0616
Remove rule for Solaris in generic SCA policy
chemamartinez Aug 20, 2019
25fefb2
Merge branch '3.10' into 404-adapt-sca-rules-to-new-syntax
chemamartinez Aug 20, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
920 changes: 0 additions & 920 deletions sca/applications/cis_apache2224_rcl.yml

This file was deleted.

518 changes: 518 additions & 0 deletions sca/applications/cis_apache_24.yml

Large diffs are not rendered by default.

290 changes: 290 additions & 0 deletions sca/applications/cis_mysql5-6_community.yml

Large diffs are not rendered by default.

300 changes: 0 additions & 300 deletions sca/applications/cis_mysql5-6_community_rcl.yml

This file was deleted.

368 changes: 368 additions & 0 deletions sca/applications/cis_mysql5-6_enterprise.yml

Large diffs are not rendered by default.

386 changes: 0 additions & 386 deletions sca/applications/cis_mysql5-6_enterprise_rcl.yml

This file was deleted.

170 changes: 170 additions & 0 deletions sca/applications/web_vulnerabilities.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,170 @@
# Security Configuration Assessment
# Checks for web-related vulnerabilities on Linux systems
# Copyright (C) 2015-2019, Wazuh Inc.
#
# This program is free software; you can redistribute it
# and/or modify it under the terms of the GNU General Public
# License (version 2) as published by the FSF - Free Software
# Foundation

policy:
id: "web_vulnerabilities"
file: "web_vulnerabilities.yml"
name: "System audit for web-related vulnerabilities"
description: "Guidance for establishing a secure configuration for web-related vulnerabilities."

requirements:
title: Check if web-server files are present
description: "Requirements for running the SCA scan against the web-vulnerability policy."
condition: any
rules:
- 'f:$php.ini'
- 'd:$web_dirs'

# In case your configuration files are not located on these paths, set the variables to match your php.ini file and your web directory
# Other possible default locations for php.ini: /var/www/conf/php.ini,/etc/php5/apache2/php.ini
# Other possible default locations for web directory: /var/htdocs,/home/httpd,/usr/local/apache,/usr/local/apache2,/usr/local/www
variables:
$php.ini: /etc/php.ini
$web_dirs: /var/www

# PHP checks
checks:
- id: 10500
title: "PHP - Ensure 'Register globals' are not enabled"
condition: all
rules:
- 'f:$php.ini -> r:^register_globals\s*\t*=\s*\t*Off|register_globals\s*\t*=\s*\t*off'

- id: 10501
title: "PHP - Ensure 'Expose PHP' is not enabled"
condition: all
rules:
- 'f:$php.ini -> r:^expose_php\s*\t*=\s*\t*Off|^expose_php\s*\t*=\s*\t*off'

- id: 10502
title: "PHP - Ensure 'Allow URL fopen' is not enabled"
condition: all
rules:
- 'f:$php.ini -> r:^allow_url_fopen\s*\t*=\s*\t*Off|^allow_url_fopen\s*\t*=\s*\t*off'

- id: 10503
title: "PHP - Ensure 'Displaying of errors' is not enabled"
condition: all
rules:
- 'f:$php.ini -> r:^display_errors\s*\t*=\s*\t*Off|^display_errors\s*\t*=\s*\t*off'

# WEB checks
- id: 10504
title: "Web exploits: '.yop' is an uncommon file name inside htdocs - Possible compromise"
compliance:
- pci_dss: ["6.5", "6.6", "11.4"]
- nist_800_53: ["SA.11", "SC.5", "SI.3", "SI.4"]
condition: none
rules:
- 'd:$web_dirs -> ^.yop$'

- id: 10505
title: "Web exploits: 'id' is an uncommon file name inside htdocs - Possible compromise"
compliance:
- pci_dss: ["6.5", "6.6", "11.4"]
- nist_800_53: ["SA.11", "SC.5", "SI.3", "SI.4"]
condition: none
rules:
- 'd:$web_dirs -> ^id$'

- id: 10506
title: "Web exploits: '.ssh' is an uncommon file name inside htdocs"
compliance:
- pci_dss: ["6.5", "6.6", "11.4"]
- nist_800_53: ["SA.11", "SC.5", "SI.3", "SI.4"]
condition: none
rules:
- 'd:$web_dirs -> ^.ssh$'

- id: 10507
title: "Web exploits: '...' is an uncommon file name inside htdocs - Possible compromise"
compliance:
- pci_dss: ["6.5", "6.6", "11.4"]
- nist_800_53: ["SA.11", "SC.5", "SI.3", "SI.4"]
condition: none
rules:
- 'd:$web_dirs -> ^...$'

- id: 10508
title: "Web exploits: '.shell' is an uncommon file name inside htdocs - Possible compromise"
compliance:
- pci_dss: ["6.5", "6.6", "11.4"]
- nist_800_53: ["SA.11", "SC.5", "SI.3", "SI.4"]
condition: none
rules:
- 'd:$web_dirs -> ^.shell$'

# Outdated Web applications
- id: 10509
title: "Web vulnerability - Outdated WordPress installation"
compliance:
- pci_dss: ["6.5", "6.6", "11.4"]
- nist_800_53: ["SA.11", "SC.5", "SI.3", "SI.4"]
condition: none
rules:
- 'd:$web_dirs -> ^version.php$ -> r:^\.wp_version && r:4.4.2'

- id: 10510
title: "Web vulnerability - Outdated Joomla installation"
compliance:
- pci_dss: ["6.5", "6.6", "11.4"]
- nist_800_53: ["SA.11", "SC.5", "SI.3", "SI.4"]
condition: none
rules:
- 'd:$web_dirs -> ^version.php$ -> r:var \.RELEASE && r:3.4.8'

- id: 10511
title: "Web vulnerability - Outdated osCommerce (v2.2) installation"
compliance:
- pci_dss: ["6.5", "6.6", "11.4"]
- nist_800_53: ["SA.11", "SC.5", "SI.3", "SI.4"]
condition: none
rules:
- 'd:$web_dirs -> ^application_top.php$ -> r:osCommerce && r:2.2-'

# Known backdoors
- id: 10512
title: "Web vulnerability - Backdoors / Web based malware found - eval(base64_decode)"
compliance:
- pci_dss: ["6.5", "6.6", "11.4"]
- nist_800_53: ["SA.11", "SC.5", "SI.3", "SI.4"]
condition: none
rules:
- 'd:$web_dirs -> .php$ -> r:eval\(base64_decode\(\paWYo'

- id: 10513
title: "Web vulnerability - Backdoors / Web based malware found - eval(base64_decode(POST))"
compliance:
- pci_dss: ["6.5", "6.6", "11.4"]
- nist_800_53: ["SA.11", "SC.5", "SI.3", "SI.4"]
condition: none
rules:
- 'd:$web_dirs -> .php$ -> r:eval\(base64_decode\(\S_POST'

- id: 10514
title: "Web vulnerability - .htaccess file compromised"
compliance:
- pci_dss: ["6.5", "6.6", "11.4"]
- nist_800_53: ["SA.11", "SC.5", "SI.3", "SI.4"]
references:
- https://blog.sucuri.net/2011/05/understanding-htaccess-attacks-part-1.html
condition: none
rules:
- 'd:$web_dirs -> ^.htaccess$ -> r:RewriteCond\s+\S+HTTP_REFERERS\s+\S+google'

- id: 10515
title: "Web vulnerability - .htaccess file compromised - auto append"
compliance:
- pci_dss: ["6.5", "6.6", "11.4"]
- nist_800_53: ["SA.11", "SC.5", "SI.3", "SI.4"]
references:
- https://blog.sucuri.net/2011/05/understanding-htaccess-attacks-part-1.html
condition: none
rules:
- 'd:$web_dirs -> ^.htaccess$ -> r:^php_value\s*auto_append_file'
Loading