Este software permite controlar el estado de los servicios en tu equipo Debian. Puede ser peligroso si se configura de una mala manera.
Para descargar el software, ve a releases y descárgate el paquete en el equipo, o ejecuta el siguiente comando desde la terminal:
sudo apt install git -y && git clone https://github.com/Nisamov/sspCon el repositorio descargado, ejecuta el siguiente comando (ruta relativa):
sudo chmod 0755 ssp/DEBIAN/*Los permisos deberian ser 0755 [0 usuario permisos rxw, 5 de grupos y 5 para otros]
Ahora monta el paquete .debcon:
dpkg-deb --build mi-paquete nombre-del-paquete.debPara instalarlo asegúrate de haberte descargado el fichero .debdel repositorio.
Tras descargarlo, ubicate en la ruta del fichero y ejecuta el siguiente comando:
sudo dpkg -i fichero.debFinalmente iniciamos el servicio con:
sudo systemctl start ssp.serviceY revisamos su estado con:
sudo systemctl status ssp.service
Si se realiza algún cambio durante su ejecución, se recomienda reiniciar el servicio:
sudo systemctl restart ssp.serviceLas rutas usadas del software son:
/usr/local/sbin/ssp_filesContiene los ficheros generales del servicio./etc/ssp.confContiene la configuración del servicio./lib/systemd/system/ssp.serviceServicio Secure Service Protocol
Para que el servicio pueda leer y aplicar la configuración establecida, es necesario reiniciar el servicio, pues este, lee durante su arranque, la configuración. No obstante, lee activamente los ficheros de los servicios permitidos en el sistema.
Fichero /etc/ssp.conf
## Seconds to wait before analyzing the services again
check_interval=15
## If enabled, the SSP will stop and unable the services
purge_on_detect=false
## If dir not found, create it
create_not_existing_dir=falseProtectSystem=full
ProtectHome=yes
NoNewPrivileges=yes
PrivateTmp=yes
ProtectKernelModules=yes
ProtectKernelTunables=yes
ProtectControlGroups=yes
RestrictRealtime=yes
CapabilityBoundingSet=CAP_SYS_ADMIN CAP_NET_ADMIN CAP_SYS_RESOURCE CAP_KILL
AmbientCapabilities=CAP_SYS_ADMIN CAP_NET_ADMIN CAP_SYS_RESOURCE CAP_KILLssp
├── DEBIAN
│ ├── control
│ ├── postinst
│ ├── preinst
│ └── prerm
├── LICENSE
├── README.md
├── _repo
│ └── _media
│ └── SecureServiceProtocol.jpg
├── etc
│ └── ssp
│ └── ssp.conf
├── lib
│ └── systemd
│ └── system
│ └── ssp.service
└── usr
├── sbin
│ ├── ssp
│ └── ssp_files
│ ├── deb_services
│ ├── funcionamiento.md
│ └── service.py
└── share
└── man
└── man8
└── ssp.8



