Skip to main content

Hardening a New Server in the First Hour

Carl HamiltonBy Carl HamiltonFounder, Hamilton Group
3 Aug 2026
Media  a New Server in the First Hour

 

A freshly installed server is not automatically a secure server.

It may be running a supported operating system and have nothing obviously wrong with it, yet still contain:

  • unnecessary services
  • broad firewall access
  • temporary credentials
  • default administrator settings
  • missing patches
  • weak remote-management controls
  • no monitoring
  • no tested backup

The first hour after deployment is therefore important.

The objective is not to configure every possible security setting before the clock reaches 60 minutes.

It is to make sure the server does not enter production with obvious high-risk weaknesses.

A useful order is:

isolate → patch → secure identities → restrict access → minimise services → apply a baseline → enable logging and protection → configure backup → document and test.

Before the Clock Starts: Know What the Server Is For

Hardening depends on role.

A:

  • domain controller
  • web server
  • database server
  • file server
  • application server
  • backup server

should not have identical security settings.

Before deployment, document:

  • server purpose
  • business owner
  • operating system/version
  • whether it is internet-facing
  • required network connections
  • administrators
  • applications
  • data stored
  • backup requirements
  • recovery priority

This prevents one of the most common mistakes:

leaving ports, services or administrator access enabled “just in case”.

If you do not know what the server needs to do, it is difficult to know what it does not need.

Minute 0–5: Keep It Away From Untrusted Networks

Do not deploy a newly installed server directly onto the public internet while you configure it.

Use something such as:

  • deployment VLAN
  • restricted management subnet
  • cloud security group
  • temporary firewall policy
  • private cloud network

Allow only the administrators and systems required for setup.

A new server should not be discoverable from everywhere before you have:

  • patched it
  • changed credentials
  • configured its firewall
  • disabled unnecessary services

This is particularly important with cloud VMs where exposing RDP or SSH to:

0.0.0.0/0

can make the system visible to automated scanners almost immediately.

Minute 5–15: Patch It Before Doing Anything Clever

Install current security updates first.

Check:

  • operating system
  • firmware
  • hypervisor integration tools
  • cloud agents
  • hardware-management tools
  • critical applications

Restart where required.

Then check for updates again.

A newly downloaded ISO or cloud template can still be months behind current security servicing.

For Windows Server 2025, Microsoft continues to introduce security-hardening changes through regular updates, so staying current is part of hardening rather than a separate maintenance task.

Also verify that the operating system itself is still supported.

Do not put an unsupported server release into production unless there is a formally approved exception, isolation strategy and migration plan.

Minute 15–20: Secure Administrator Accounts

Replace temporary or default credentials.

That can include:

  • local Administrator
  • root
  • cloud management accounts
  • application administrator accounts
  • database administrator credentials
  • backup credentials
  • remote-management controllers

Use:

  • unique passwords
  • an approved password manager
  • named administrator accounts
  • separate privileged and everyday accounts

Do not use the same administrative account for:

  • email
  • web browsing
  • ordinary Office work
  • server administration

If a phishing attack compromises your normal account, it should not automatically compromise the server.

Enable MFA Where It Actually Applies

Protect:

  • cloud admin portals
  • VPN
  • privileged-access systems
  • backup consoles
  • remote-management gateways
  • password vaults

with MFA.

Direct local Windows/Linux login does not always support MFA in the same way, so remote access should usually be placed behind an MFA-protected:

  • VPN
  • gateway
  • bastion
  • privileged-access platform

The point is not simply:

“MFA enabled somewhere.”

It is:

an attacker cannot reach privileged server access with only a stolen password.

Minute 20–30: Lock Down Network Access

Enable the host firewall.

Then allow only the traffic required for the documented server role.

For example:

Web server

Allow:

  • HTTPS from required networks
  • restricted management access

File server

Allow:

  • SMB only from trusted internal networks
  • management only from administration networks

Database server

Allow:

  • database traffic only from authorised application servers
  • management from controlled admin networks

Avoid:

Any source → any port → allow

just because an application initially fails.

Find out exactly what traffic it needs.

Good firewall rules should be narrow enough that you can answer:

who needs this port and why?

Never Expose RDP Directly to the Internet

For Windows servers, avoid public RDP whenever possible.

Prefer:

  • VPN
  • Remote Desktop Gateway
  • Azure Bastion
  • jump host
  • privileged access platform

If RDP is required:

  • use Network Level Authentication
  • restrict source networks
  • restrict authorised groups
  • log connection attempts
  • use MFA at the access layer

Changing the RDP port is not a security strategy.

It may reduce noise from basic scanning.

It does not make weak authentication safe.

Harden SSH Properly

For Linux servers:

  • prefer SSH keys
  • disable direct root login
  • restrict source networks
  • remove unused keys
  • use named administrator accounts
  • give controlled sudo privileges
  • protect private keys carefully

Again, moving SSH from:

22 → 2222

may reduce log noise.

It does not replace:

  • strong authentication
  • firewall restrictions
  • patching
  • monitoring

Minute 30–35: Remove What the Server Does Not Need

Every unnecessary component increases the attack surface.

Review:

  • installed roles
  • optional packages
  • listening ports
  • services
  • sample applications
  • old management agents
  • legacy protocols

On Linux:

ss -tulpn

can help identify listening services.

On Windows:

Get-NetTCPConnection -State Listen

can show listening network endpoints.

Do not disable random services just because their names look unfamiliar.

Hardening should be:

role-aware

not:

turn everything off until the server breaks.

Prefer Minimal Installation

Where practical, use the smallest server installation suitable for the workload.

For example:

  • Windows Server Core
  • minimal Linux installation
  • no browser
  • no Office software
  • no development tools
  • no unnecessary GUI

Fewer components normally mean:

  • fewer patches
  • fewer services
  • fewer vulnerabilities
  • less configuration drift

That does not mean removing tools required for:

  • administration
  • recovery
  • monitoring
  • backup

Minimal should mean purposeful, not unusable.

Minute 35–45: Apply a Published Security Baseline

This is one of the most important improvements I would make to the article.

Do not manually invent 300 hardening settings.

Use an established baseline.

Depending on the platform, that might include:

  • Microsoft Security Baselines
  • Windows Server OSConfig
  • CIS Benchmarks
  • vendor hardening guides
  • cloud-provider baselines
  • your organisation’s approved standard

Microsoft’s Windows Server 2025 OSConfig baseline provides more than 300 role-aware security settings covering areas including:

  • Secure Boot
  • VBS
  • modern TLS
  • SMB
  • Kerberos
  • credential protection
  • account policies
  • security options.

Microsoft also explicitly warns that baselines can alter normal operating behaviour and should be tested before production enforcement.

That warning matters.

A strong baseline applied without testing can break:

  • legacy applications
  • authentication
  • service accounts
  • old SMB dependencies
  • remote administration

Security and operational reliability need to be considered together.

Windows Server 2025: Use Role-Specific Baselines

Windows Server 2025 distinguishes between:

  • Domain Controller
  • domain-joined member server
  • workgroup member server

because those machines should not receive identical security configuration.

Microsoft's current OSConfig implementation can also help maintain the baseline over time instead of allowing security configuration to drift silently after deployment.

That is a substantial improvement over:

apply settings once → never check them again.

Minute 45–50: Enable Security Logging and Monitoring

A hardened server that nobody monitors can still be compromised without anyone noticing.

Make sure important logs are retained and reviewed.

Depending on the environment, monitor:

  • failed logins
  • privileged account changes
  • new administrator accounts
  • service creation
  • firewall changes
  • application failures
  • endpoint-security alerts
  • unusual network activity

For Windows environments, this may involve:

For Linux:

  • journald
  • auditd
  • central syslog/SIEM
  • EDR

The important requirement is:

the server should not be the only place where evidence exists.

If an attacker compromises the machine, locally stored logs can potentially be altered or deleted.

Centralise important security telemetry where practical.

Install Endpoint Protection Before Production Use

Depending on the server role, deploy appropriate:

  • antivirus
  • EDR
  • anti-malware
  • behavioural monitoring

before allowing normal production workloads.

Do not assume:

“It's a server, so antivirus will break it.”

Instead:

  • use server-supported security software
  • configure only documented exclusions
  • test application compatibility

Broad folder exclusions can create exactly the hiding places attackers want.

Minute 50–55: Configure Backup and Recovery

Do not consider a server production-ready because backup software has been installed.

Check:

  • what is being backed up
  • backup destination
  • retention
  • encryption
  • off-site copy
  • ransomware resistance
  • alerting

Also protect things that are easily forgotten:

  • system configuration
  • application configuration
  • certificates
  • encryption keys
  • database configuration
  • firewall rules

A recovery plan should answer:

If this server disappeared tonight, what exactly would we need to rebuild it?

A backup job reporting:

Successful

is useful.

A successful restore test is much stronger evidence.

Minute 55–60: Test, Document and Establish the Baseline

Before handing the server to users, confirm:

  • required applications work
  • required ports work
  • unnecessary ports do not
  • remote administration works through the approved path
  • logging works
  • monitoring reports healthy
  • backup completes
  • endpoint protection is active
  • updates are current

Then document:

  • hostname
  • IP/network
  • role
  • owner
  • administrative access method
  • software
  • firewall rules
  • backup configuration
  • monitoring
  • exceptions from the baseline

That becomes your known-good configuration.

Without documentation, six months later nobody knows whether:

Port 8443

was deliberately opened or accidentally left behind.

Do Not Forget Time Synchronisation

Accurate time matters for:

  • Kerberos
  • certificates
  • authentication
  • event correlation
  • scheduled tasks
  • backups

Domain-joined Windows servers should normally follow the correct domain time hierarchy.

Linux systems should use approved NTP sources.

Incorrect time can make a server appear to have:

  • invalid certificates
  • failed authentication
  • impossible security-event sequences

Time configuration is mundane until it breaks.

Then it becomes extremely important.

Do Not Treat Hardening as a One-Time Task

The “first hour” establishes the baseline.

It does not finish security.

Servers change.

Administrators:

  • install applications
  • open firewall rules
  • create accounts
  • change services
  • add integrations

Vulnerabilities are discovered.

Microsoft itself now revises Windows Server security baselines more frequently to keep pace with changing threats and platform capabilities.

So periodically review:

  • updates
  • vulnerabilities
  • administrator membership
  • firewall rules
  • security baseline drift
  • backups
  • monitoring
  • unused software

A secure deployment can become insecure gradually without anybody making one obviously dangerous change.

The First-Hour Checklist

If I had only one hour before a new server entered production, I would prioritise:

  1. Document the server role.
  2. Keep it isolated while configuring.
  3. Install all security updates.
  4. Confirm the operating system is supported.
  5. Replace temporary/default credentials.
  6. Create named privileged accounts.
  7. Protect remote administration with MFA.
  8. Enable and restrict the firewall.
  9. Lock down RDP or SSH.
  10. Remove unnecessary roles and services.
  11. Apply the appropriate security baseline.
  12. Enable endpoint protection.
  13. Centralise important logging.
  14. Configure backup and monitoring.
  15. Verify the final configuration and document it.

The key principle is:

Do not make the server useful to the business before you have made it difficult for an attacker to use.

How Hamilton Group Can Help

Hamilton Group can help businesses deploy and secure servers using a repeatable baseline rather than relying on whatever defaults the installer provided.

We can assist with:

  • Windows Server
  • Linux servers
  • server security hardening
  • Microsoft security baselines
  • OSConfig
  • firewall configuration
  • remote-access security
  • endpoint protection
  • patch management
  • vulnerability scanning
  • monitoring
  • backup and recovery

The objective is not to produce a server with hundreds of obscure security settings enabled.

It is to build a system that is patched, minimally exposed, securely administered, monitored and recoverable from the moment it enters production.

Visit hgmssp.com or call 01423 438 953 to discuss server deployment and cyber security.

Carl Hamilton
About the author
Carl Hamilton
Founder, Hamilton Group
Carl Hamilton is the founder of Hamilton Group, a UK managed IT services provider helping small and medium businesses stay secure, productive and well supported with proactive IT, cyber security and Microsoft 365 expertise.

0 comments

  1. Be the first to comment.

Join the conversation

Comments are checked before they appear.

Your email stays private; we never publish it. By commenting you agree to our acceptable-use terms.