Dev Sec Ops
Dev Sec Ops
IO
DevSecOps Guides
Checklists / Apache
Enable HTTPS
Install SSL certificate and configure Apache to use it
Disable HTTP TRACE method
TraceEnable off
Checklists / ArgoCD
Checklists / auth0
Checklists / AWS
Checklists / Ceph
Checklists / Consul
file=/path/to/consul.key
-script-check=<check-command>
Checklists / CouchDB
get upgrade
Checklists / Docker
limits:
cpus: 0.5
memory: 512M
REGISTRY_HTTP_TLS_KEY=/certs/domain.key registry:latest
Enable authentication
docker run -d -p 443:443 --name registry -v /path/to/auth:/auth -e REGISTRY_AUTH=htpasswd -e "REGISTRY_AUTH_HTPASSWD_REALM=Registry Realm" -e
REGISTRY_AUTH_HTPASSWD_PATH=/auth/htpasswd registry:latest
Checklists / eBPF
Checklists / Elasticsearch
http.cors.allow-methods: HEAD,GET,POST,PUT,DELETE,OPTIONS
http.cors.allow-headers: "X-Requested-With,Content-Type,Content-Length"
http.max_content_length: 100mb
Add the following rules to only allow incoming connections from trusted IP addresses:
-A INPUT -p tcp -m tcp --dport 9200 -s 10.0.0.0/8 -j ACCEPT
Checklists / etcd
Checklists / Git
or
git config --global commit.gpgsign true
Checklists / Gitlab
Checklists / GlusterFS
Checklists / Gradle
repositories {
mavenCentral {
url "https://repo1.maven.org/maven2/"
maven {
url "https://plugins.gradle.org/m2/"
Checklists / IIS
or
Set-WebConfigurationProperty -filter "/system.webServer/httpLogging" -name logExtFileFlags -value "Date, Time, ClientIP, UserName, SiteName,
ComputerName, ServerIP, Method, UriStem, UriQuery, HttpStatus, Win32Status, BytesSent, BytesRecv, TimeTaken
Checklists / Jenkins
Checklists / Kubernetes
Update spec.loadBalancerSourceRanges
Update --enable-admission-plugins
Checklists / Memcached
Enable logging
sed -i 's/^logfile/#logfile/g' /etc/sysconfig/memcached
mkdir /var/log/memcached
touch /var/log/memcached/memcached.log
Checklists / MongoDB
Enable authentication
sed -i '/security:/a \ \ \ \ authorization: enabled' /etc/mongod.conf
Checklists / MySQL
Checklists / Nginx
ssl_ciphers HIGH:!aNULL:!MD5;
Enable HSTS
add_header Strict-Transport-Security "max-age=31536000; includeSubdomains; preload";
Set up HTTP/2
listen 443 ssl http2;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
Checklists / OpenShift
Checklists / Redis
Enable authentication
Set a password in the Redis configuration file ( redis.conf ) using the requirepass directive. Restart Redis service to apply changes.
Bind Redis to a specific IP address
Edit the bind directive in the Redis configuration file to specify a specific IP address.
Enable SSL/TLS encryption
Edit the redis.conf file to specify SSL/TLS options and certificate files. Restart Redis service to apply changes.
Disable unused Redis modules
Edit the redis.conf file to disable modules that are not needed. Use the module-load and module-unload directives to control modules.
Set limits for memory and connections
Edit the maxmemory and maxclients directives in the redis.conf file to set limits for Redis memory and connections.
Monitor Redis logs
Regularly check Redis logs for suspicious activities and errors. Use a log analyzer tool to help detect anomalies.
Regularly update Redis
Keep Redis up-to-date with the latest security patches and updates. Monitor vendor security advisories for any vulnerabilities that may affect Redis.
Copyright © 2019-2023 HADESS.
DevSecOps Guides
Checklists / SaltStack
Enable SSL encryption for SaltStack communication by updating the Salt master configuration file
# /etc/salt/master
ssl_cert: /etc/pki/tls/certs/salt.crt
ssl_key: /etc/pki/tls/private/salt.key
Checklists / SBOM
Checklists / Squid
http_max_clients 50
Checklists / Terraform
Checklists / Tomcat
connectionTimeout="20000"
redirectPort="8443" />
clientAuth="false" sslProtocol="TLS"
keystoreFile="/path/to/keystore"
keystorePass="password" />
Checklists / Weblogic
sslEnabled=true -sslListenPort=9003
keystorepassword -hostName myhost.example.com -sslEnabledProtocols TLSv1.2 -enabledProtocols TLSv1.2 -keystoreType JKS -server SSL
myuser -password mypassword -target myServer -trustStore myTrustStore.jks -trustStorePassword myTrustStorePassword -identityStore
Dweblogic.NodeManager.sslHostnameVerificationIgnored=true -Dweblogic.NodeManager.KeyStores=CustomIdentityAndJavaTrust
Copyright © 2019-2023 HADESS.