cyberstrikeus/cyberstrike/cis-nginx-v300-4-1-1

Claude Code and agent skill by cyberstrikeus/cyberstrike

Trust tier 3
  • community
  • ext:[{"type":"config","description":"Configuration overrides"}]
Source check pending

Checking that the SKILL.md file is still in the repository.

Ensure HTTP is redirected to HTTPS (Manual)

Install

npx vskill@latest install cyberstrikeus/cyberstrike/cis-nginx-v300-4-1-1

Semi-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-1.

CIS 4.1.1 — Ensure HTTP is redirected to HTTPS

Profile Applicability

  • Level 1 - Webserver
  • Level 1 - Proxy
  • Level 1 - Loadbalancer

Description

Browsers and clients establish encrypted connections with servers by leveraging HTTPS. Requests leveraging HTTP are unencrypted. Unencrypted requests should be redirected so they are encrypted. Any listening HTTP port on your web server should redirect to a server profile that uses encryption. The default HTTP (unencrypted) port is 80.

Rationale

Redirecting user agent traffic to HTTPS helps to ensure all user traffic is encrypted. Modern browsers alert users that your website is insecure when HTTPS is not used. This can decrease user trust in your website and ultimately result in decreased use of your web services. Redirection from HTTP to HTTPS couples security with usability; users are able to access your website even if they lack the security awareness to use HTTPS over HTTP when requesting your website.

Impact

Use of HTTPS does result in a performance reduction in traffic to your website, however, due to the increased value of the security, many businesses consider this to be a cost of doing business.

Audit Procedure

To verify your server listening configuration, check your web server or proxy configuration file. The default web server configuration file is /etc/nginx/conf.d/default.conf, and the default proxy configuration file is /etc/nginx/nginx.conf. The configuration file should return a statement redirecting to HTTPS. This should be similar to the code below, where cisecurity.org is used as an example.

nginx
server {
listen 80;
server_name cisecurity.org;
return 301 https://$host$request_uri;
}

Remediation

Edit your web server or proxy configuration file to redirect all unencrypted listening ports, such as port 80, using a redirection through the return directive (cisecurity.org is used as an example server name).

nginx
server {
listen 80;
server_name cisecurity.org;
return 301 https://$host$request_uri;
}

Default Value

NGINX is not configured to use HTTPS or redirect to it by default.

References

  1. https://nginx.org/en/docs/http/ngx_http_core_module.html

CIS Controls

Controls VersionControlIG 1IG 2IG 3
v83.10 Encrypt Sensitive Data in TransitNYY
v714.4 Encrypt All Sensitive Information in TransitNYY

MITRE ATT&CK Mappings

TacticTechnique
Credential AccessT1557 - Adversary-in-the-Middle
CollectionT1185 - Browser Session Hijacking

Profile

  • Level 1 - Webserver
  • Level 1 - Proxy
  • Level 1 - Loadbalancer

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/cyberstrikeus/cyberstrike/cis-nginx-v300-4-1-1/badge)](https://verified-skill.com/skills/cyberstrikeus/cyberstrike/cis-nginx-v300-4-1-1)

Something wrong with this skill or its page? Tell us.