Avoiding Configuration Gaps
Overview: This is an advanced hardening guide. Lockdown seals HeartSuite Core Secure’s configuration with filesystem immutability, but programs like file editors and rm remain executable by default. For high-security environments, you can optionally restrict these tools during Lockdown to close additional attack surfaces. The Dashboard’s Maintenance screen ([t]) guides you through maintenance workflows, and the Mode Switch screen ([m]) manages Lockdown status.
Locking Down Maintenance Tools
- Programs like
rmoften need broad write access for maintenance. - In production (lockdown), disable or restrict them to block misuse via vulnerabilities.
Example: Remove execution privileges from rm and make it immutable when Lockdown is applied. Restore access with hs-unlock for maintenance. The Dashboard displays the current lockdown status and guides you through unlocking when maintenance is needed.
Run hs-unlock before maintenance to avoid errors like “could not open file; errno:1.”
Handling Programs Needing Write Access in Lockdown
- Database servers need write permissions to their data files/directories.
- Limit to specific paths—do not allow universal writes.
- Note: Database security is handled by the program itself, not HeartSuite Core Secure.
Optional Hardening: Programs Requiring Broad Access During Lockdown
Some programs (e.g., shutdown routines) need rm during operation, but you may want to restrict the full rm binary.
- Solution: Create a limited copy (
limited_rm) with restricted permissions. - Configure scripts to use the copy during Lockdown.
Setup steps:
- Copy
rmtolimited_rmand rename original torm-orig:# sudo cp /usr/bin/rm /usr/bin/limited_rm # sudo mv /usr/bin/rm /usr/bin/rm-orig # sudo ln -sf /usr/bin/limited_rm /usr/bin/rm - Reboot and allowlist
limited_rmfrom the Dashboard’s Programs queue ([p]). - Update the Lockdown configuration to disable
rm-origand make both immutable. - Update
hs-unlockconfiguration to restore access.
Restore full rm for maintenance:
# sudo mv /usr/bin/rm-orig /usr/bin/rm
Now, scripts call limited_rm with restricted access during lockdown.
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.