rhel8-script-stig.sh
SHELL
Verdict: BENIGN
AI
Legitimate security hardening script
Local reference
Suspicious dependency
Inferred
rhel8-script-stig.sh
shell
| 1 |
#!/usr/bin/env bash |
|
| 2 |
############################################################################### |
|
| 3 |
# |
|
| 4 |
# Bash Remediation Script for DISA STIG for Red Hat Enterprise Linux 8 |
OpenSCAP Bash remediation profile banner |
| 5 |
# |
|
| 6 |
# Profile Description: |
|
| 19 |
# Benchmark ID: xccdf_org.ssgproject.content_benchmark_RHEL-8 |
|
| 20 |
# Benchmark Version: 0.1.81 |
|
| 21 |
# XCCDF Version: 1.2 |
|
| 22 |
# |
|
| 23 |
# This file can be generated by OpenSCAP using: |
|
| 41 |
if ! rpm -q --quiet "aide" ; then |
|
| 42 |
yum install -y "aide" |
|
| 43 |
fi |
|
| 153 |
CRONTAB=/etc/crontab |
|
| 154 |
CRONDIRS='/etc/cron.d /etc/cron.daily /etc/cron.weekly /etc/cron.monthly' |
|
| 7253 |
find "/etc/tmpfiles.d/" -name "*.conf" -print0 | xargs -0 sed -i "/C[[:space:]]*\/root\/.bash_logout/d" |
.bash_logout shell configuration file |
| 7254 |
find "/etc/tmpfiles.d/" -name "*.conf" -print0 | xargs -0 sed -i "/C[[:space:]]*\/root\/.bash_profile/d" |
|
| 7255 |
find "/etc/tmpfiles.d/" -name "*.conf" -print0 | xargs -0 sed -i "/C[[:space:]]*\/root\/.bashrc/d" |
|
| 7256 |
find "/etc/tmpfiles.d/" -name "*.conf" -print0 | xargs -0 sed -i "/C[[:space:]]*\/root\/.cshrc/d" |
C shell startup file reference |
| 7257 |
find "/etc/tmpfiles.d/" -name "*.conf" -print0 | xargs -0 sed -i "/C[[:space:]]*\/root\/.tcshrc/d" |
|
Identity
| SHA-256 |
a10a609bba104e43bad43eb5f2d6a612c522ae18f63a88e8f150099126e573f0 |
| Canonical SHA-256 |
0051a85de8bbf8d7f45f3b470728902aca41fb4524bc4a02cacd16f8e81d2708 |
| Filename |
rhel8-script-stig.sh |
Origin
| Source |
forager |
| Feed |
osimage |
| Ecosystem |
rocky |
Timeline
| First seen |
27 Jul 2026 08:47 UTC |
| First analyzed |
27 Jul 2026 20:32 UTC |
| Last analyzed |
27 Jul 2026 21:32 UTC |
| Last updated |
27 Jul 2026 21:32 UTC |
Labeling
| Label |
good |
| Label source |
forager |
| Traits version |
01566 |