<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.datacommons.up.edu.ph/index.php?action=history&amp;feed=atom&amp;title=Security_Hardening</id>
	<title>Security Hardening - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.datacommons.up.edu.ph/index.php?action=history&amp;feed=atom&amp;title=Security_Hardening"/>
	<link rel="alternate" type="text/html" href="https://wiki.datacommons.up.edu.ph/index.php?title=Security_Hardening&amp;action=history"/>
	<updated>2026-05-09T09:21:25Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://wiki.datacommons.up.edu.ph/index.php?title=Security_Hardening&amp;diff=8&amp;oldid=prev</id>
		<title>Updc admin: Created page with &quot;{{DISPLAYTITLE:VM Security Features}}  == Quick Reference ==  Overview of security features implemented on UPDC VMs through the automated security hardening script.  == Security Features Overview ==  * &#039;&#039;&#039;Root Access Disabled&#039;&#039;&#039; - Root login and shell disabled * &#039;&#039;&#039;SSH Key Authentication&#039;&#039;&#039; - Password authentication disabled, key-only access * &#039;&#039;&#039;Password Policy&#039;&#039;&#039; - 12+ chars, complexity, 90-day expiry, history tracking * &#039;&#039;&#039;Firewall Protection&#039;&#039;&#039; - UFW configured with...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.datacommons.up.edu.ph/index.php?title=Security_Hardening&amp;diff=8&amp;oldid=prev"/>
		<updated>2025-09-12T10:19:22Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{DISPLAYTITLE:VM Security Features}}  == Quick Reference ==  Overview of security features implemented on UPDC VMs through the automated security hardening script.  == Security Features Overview ==  * &amp;#039;&amp;#039;&amp;#039;Root Access Disabled&amp;#039;&amp;#039;&amp;#039; - Root login and shell disabled * &amp;#039;&amp;#039;&amp;#039;SSH Key Authentication&amp;#039;&amp;#039;&amp;#039; - Password authentication disabled, key-only access * &amp;#039;&amp;#039;&amp;#039;Password Policy&amp;#039;&amp;#039;&amp;#039; - 12+ chars, complexity, 90-day expiry, history tracking * &amp;#039;&amp;#039;&amp;#039;Firewall Protection&amp;#039;&amp;#039;&amp;#039; - UFW configured with...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{DISPLAYTITLE:VM Security Features}}&lt;br /&gt;
&lt;br /&gt;
== Quick Reference ==&lt;br /&gt;
&lt;br /&gt;
Overview of security features implemented on UPDC VMs through the automated security hardening script.&lt;br /&gt;
&lt;br /&gt;
== Security Features Overview ==&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Root Access Disabled&amp;#039;&amp;#039;&amp;#039; - Root login and shell disabled&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;SSH Key Authentication&amp;#039;&amp;#039;&amp;#039; - Password authentication disabled, key-only access&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Password Policy&amp;#039;&amp;#039;&amp;#039; - 12+ chars, complexity, 90-day expiry, history tracking&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Firewall Protection&amp;#039;&amp;#039;&amp;#039; - UFW configured with SSH-only access&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Intrusion Prevention&amp;#039;&amp;#039;&amp;#039; - Fail2Ban with 5-attempt lockout&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Security Monitoring&amp;#039;&amp;#039;&amp;#039; - Wazuh agent for centralized monitoring&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Audit Logging&amp;#039;&amp;#039;&amp;#039; - Comprehensive auditd rules for system events&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Log Retention&amp;#039;&amp;#039;&amp;#039; - Extended retention with compression&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Service Hardening&amp;#039;&amp;#039;&amp;#039; - Unused services disabled&lt;br /&gt;
&lt;br /&gt;
== Detailed Security Features ==&lt;br /&gt;
&lt;br /&gt;
=== Access Control ===&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Root Account&amp;#039;&amp;#039;&amp;#039;: Disabled login and shell access&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;SSH Configuration&amp;#039;&amp;#039;&amp;#039;: Key-only authentication, no passwords&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;User Management&amp;#039;&amp;#039;&amp;#039;: Sudo user creation with proper permissions&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Session Limits&amp;#039;&amp;#039;&amp;#039;: Limited SSH sessions and auth attempts&lt;br /&gt;
&lt;br /&gt;
=== Network Security ===&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;UFW Firewall&amp;#039;&amp;#039;&amp;#039;: Default deny incoming, allow SSH only&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;SSH Restrictions&amp;#039;&amp;#039;&amp;#039;: Standard port, rate limiting enabled&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Connection Monitoring&amp;#039;&amp;#039;&amp;#039;: Fail2Ban with configurable ban duration&lt;br /&gt;
&lt;br /&gt;
=== Password Security ===&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Complexity&amp;#039;&amp;#039;&amp;#039;: Uppercase, lowercase, digits, special characters&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Length&amp;#039;&amp;#039;&amp;#039;: Minimum 12 characters&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;History&amp;#039;&amp;#039;&amp;#039;: Prevents password reuse&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Expiration&amp;#039;&amp;#039;&amp;#039;: Password expiry and warning periods&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Lockout&amp;#039;&amp;#039;&amp;#039;: Failed attempts and lockout duration&lt;br /&gt;
&lt;br /&gt;
=== Monitoring &amp;amp; Logging ===&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Wazuh Agent&amp;#039;&amp;#039;&amp;#039;: Centralized security monitoring&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Audit Logging&amp;#039;&amp;#039;&amp;#039;: File access, user management, system changes&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Log Retention&amp;#039;&amp;#039;&amp;#039;: Extended retention with compression&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Security Events&amp;#039;&amp;#039;&amp;#039;: Authentication, privilege escalation, file modifications&lt;br /&gt;
&lt;br /&gt;
=== System Hardening ===&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Service Disabling&amp;#039;&amp;#039;&amp;#039;: Unused services (bluetooth, cups, etc.) disabled&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;File Permissions&amp;#039;&amp;#039;&amp;#039;: Secure SSH directory and key permissions&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Process Monitoring&amp;#039;&amp;#039;&amp;#039;: System call auditing for security events&lt;br /&gt;
&lt;br /&gt;
== Security Tools ==&lt;br /&gt;
&lt;br /&gt;
=== Fail2Ban ===&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Purpose&amp;#039;&amp;#039;&amp;#039;: Intrusion prevention system&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Monitoring&amp;#039;&amp;#039;&amp;#039;: SSH, authentication failures&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Integration&amp;#039;&amp;#039;&amp;#039;: Works with UFW firewall&lt;br /&gt;
&lt;br /&gt;
=== Wazuh Agent ===&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Purpose&amp;#039;&amp;#039;&amp;#039;: Security information and event management (SIEM)&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Features&amp;#039;&amp;#039;&amp;#039;: Real-time monitoring, threat detection, compliance&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Logs&amp;#039;&amp;#039;&amp;#039;: System events, security alerts, file integrity&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Manager&amp;#039;&amp;#039;&amp;#039;: Centralized dashboard for all VMs&lt;br /&gt;
&lt;br /&gt;
=== Auditd ===&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Purpose&amp;#039;&amp;#039;&amp;#039;: System audit logging&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Monitors&amp;#039;&amp;#039;&amp;#039;: File access, user management, privilege escalation&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Retention&amp;#039;&amp;#039;&amp;#039;: Extended log retention&lt;br /&gt;
&lt;br /&gt;
== Quick Commands ==&lt;br /&gt;
&lt;br /&gt;
=== Check Security Status ===&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
# Check Fail2Ban status&lt;br /&gt;
sudo fail2ban-client status sshd&lt;br /&gt;
&lt;br /&gt;
# Check Wazuh agent&lt;br /&gt;
sudo systemctl status wazuh-agent&lt;br /&gt;
&lt;br /&gt;
# Check audit logs&lt;br /&gt;
sudo ausearch -k authentication&lt;br /&gt;
&lt;br /&gt;
# Check firewall status&lt;br /&gt;
sudo ufw status verbose&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Security Verification ==&lt;br /&gt;
&lt;br /&gt;
After VM setup, verify these security features:&lt;br /&gt;
&lt;br /&gt;
* [ ] Root login disabled (`sudo passwd -S root`)&lt;br /&gt;
* [ ] SSH key authentication working&lt;br /&gt;
* [ ] Password policy enforced&lt;br /&gt;
* [ ] UFW firewall active&lt;br /&gt;
* [ ] Fail2Ban monitoring SSH&lt;br /&gt;
* [ ] Wazuh agent connected&lt;br /&gt;
* [ ] Audit logging active&lt;br /&gt;
* [ ] Unused services disabled&lt;br /&gt;
&lt;br /&gt;
[[Category:Security]]&lt;br /&gt;
[[Category:VM Operations]]&lt;/div&gt;</summary>
		<author><name>Updc admin</name></author>
	</entry>
</feed>