cyberstrikeus/cyberstrike/cis-nginx-v300-4-1-2
Claude Code and agent skill by cyberstrikeus/cyberstrike
- community
- ext:[{"type":"config","description":"Configuration overrides"}]
Checking that the SKILL.md file is still in the repository.
Ensure a trusted certificate and trust chain is installed (Manual)
Install
npx vskill@latest install cyberstrikeus/cyberstrike/cis-nginx-v300-4-1-2Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as cyberstrikeus/cyberstrike/cis-nginx-v300-4-1-2.
CIS 4.1.2 — Ensure a trusted certificate and trust chain is installed
Profile Applicability
- Level 1 - Webserver
- Level 1 - Proxy
- Level 1 - Loadbalancer
Description
Certificates and their trust chains are needed to establish the identity of a web server as legitimate and trusted. Certificate authorities validate a web server's identity and that you are the owner of that web server domain name.
Rationale
Without a certificate and full trust chain installed on your web server, modern browsers will flag your web server as untrusted.
Audit Procedure
Run this command to find the file location of your certificate:
The output of your command should look similar to the below output. If there is no output, you do not have a certificate installed.
Web Server:
Open the file to the right of the ssl_certificate directive using the following command:
The output of your command should look similar to the below. It should include the full certificate chain.
Remediation
Use the following procedure to install a certificate and its signing certificate chain onto your web server, load balancer, or proxy.
Step 1: Create the server's private key and a certificate signing request.
The following command will create your certificate's private key with 4096-bit key strength. It will also output your certificate signing request to the nginx.csr file in your present working directory.
Enter the below information about your private key:
Step 2: Obtain a signed certificate from your certificate authority.
Provide your chosen certificate authority with your certificate signing request. Follow your certificate authority's signing procedures in order to obtain a certificate and the certificate's trust chain. A full trust chain is typically delivered in .pem format.
Step 3: Install certificate and signing certificate chain on your web server.
Place the .pem file from your certificate authority into the directory of your choice. Locate your created key file from the command you used to generate your certificate signing request. Open your website configuration file and edit your encrypted listener to leverage the ssl_certificate and ssl_certificate_key directives for a web server as shown below. You should also inspect include files inside your nginx.conf. This should be part of the server block.
After editing this file, you must restart the nginx systemd service for these changes to take effect. This can be done with the following command:
Default Value
No certificate is installed by default.
References
- https://nginx.org/en/docs/http/configuring_https_servers.html#chains
- https://support.globalsign.com/customer/portal/articles/1290470-install-certificate--nginx
CIS Controls
| Controls Version | Control | IG 1 | IG 2 | IG 3 | |
|---|---|---|---|---|---|
| v8 | 3.10 Encrypt Sensitive Data in Transit | N | Y | Y | |
| v7 | 14.4 Encrypt All Sensitive Information in Transit | N | Y | Y |
MITRE ATT&CK Mappings
| Tactic | Technique | |
|---|---|---|
| Credential Access | T1557 - Adversary-in-the-Middle | |
| Initial Access | T1190 - Exploit Public-Facing Application |
Profile
- Level 1 - Webserver
- Level 1 - Proxy
- Level 1 - Loadbalancer
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.cyberstrike/skill/CIS_benchmarks/Server_Software/Nginx/CIS_NGINX_Benchmark_v3.0.0/cis-nginx-v300-4-1-2/SKILL.md
Popularity
- Repository stars
- 2,916
- Repository forks
- 457
- 7-day trend score
- 40
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Extension points
configConfiguration overrides
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/cyberstrikeus/cyberstrike/cis-nginx-v300-4-1-2)