FinClip uses container packaging for distribution and is deployed on Linux servers (Windows is also supported). For Linux system security configuration, you can refer to the following recommendations:
1. System Updates and Patches
- Update System Regularly: Use package managers to update software and kernels regularly, e.g.,
apt-get update && apt-get upgradeoryum update. - Automatic Updates: Enable automatic update services, such as
unattended-upgrades(Ubuntu) ordnf-automatic(CentOS).
2. User Accounts and Access Control
Disable Default Accounts:
Prevent direct login as the
rootuser. Edit/etc/ssh/sshd_config:PermitRootLogin noCreate non-privileged users for daily operations and escalate privileges using
sudo.
Strong Password Policy:
Use complex passwords and enable password complexity policies:
/etc/security/pwquality.confEnforce password expiration using the
chagetool.
Limit Login Attempts:
- Configure
pam_tally2orfaillockto lock accounts after multiple failed login attempts.
- Configure
3. SSH Security
Change Default Port
- Change the default SSH port from
22to a non-standard port, such as2222.
- Change the default SSH port from
Enable Key-Based Authentication
Disable password login and enforce SSH public key authentication:
PasswordAuthentication no
Restrict IP Addresses
- Use firewall rules or
/etc/hosts.allowand/etc/hosts.denyto allow login only from specific IPs.
- Use firewall rules or
4. Firewall and Network Configuration
Enable Firewall:
Use
ufw(Ubuntu) orfirewalld(CentOS) to manage rules and restrict access to only necessary ports:ufw allow 22 ufw deny 3306
Disable Unnecessary Services:
Use
systemctlorchkconfigto disable unused services:systemctl disable service_name
Defend Against Port Scanning:
- Configure
iptablesor use Fail2Ban to detect and block malicious access.
- Configure
5. File and Directory Permissions
Principle of Least Privilege:
Ensure file and directory permissions do not exceed what is necessary, for example:
chmod 700 /root chmod 600 /etc/ssh/sshd_config
Restrict Access to Critical Files:
- Use ACL (
setfacl) to further restrict user access to sensitive files.
- Use ACL (
6. Logging and Auditing
Enable Log Auditing:
Configure
auditdto monitor critical operations, such as file changes and account management:auditctl -w /etc/passwd -p wa
Regularly Review Logs:
- Analyze system logs in
/var/log, such asauth.logandsyslog. - Use log management tools, such as ELK or Loki.
- Analyze system logs in
7. Backup and Recovery
Regular Backups
- Use tools such as
rsyncorborgto back up data and verify recoverability.
- Use tools such as
Off-Site Backups
- Store backup data on remote servers or cloud storage.
