Hi,
We just packaged a first alpha version of Self Hosting Security Dashboard (SHSD). SHSD aims to provide a synthetic overview of the security status of accounts and devices in a self-hosting context. It is tailored to users who can deploy self-hosting solutions (such as Yunohost or Sandstorm) or who have an account (mail address) on such hosting, without requiring expert security knowledge.
Currently, SHSD offers a map of connections to local accounts to help detecting account compromission. Progressively, it will present a couple of very simple indicators on account usage and local devices (listing, IDS, etc.).
You can find more info on SHSD here : https://github.com/dynamid/shsd/
You can try it on Yunohost :
yunohost app install GitHub - dynamid/shsd_ynh: Yunohost package of SHSD
It is still in its very early stages but it should install and uninstall correctly.
Weâd be glad to have some comments from the community !
Francois
2 Likes
Aleks
July 24, 2018, 1:39pm
2
That looks very nice, thank you for your work !
Donât hesitate to propose it to be added to the community list (even marked as âin progressâ is fine). C.f. the instructions here : https://github.com/YunoHost/apps#how-to-add-your-app-to-the-community-list
Merci pour cet empaquetage, il a lâair bien intĂ©ressant ce logiciel
Jâai un problĂšme Ă lâinstallation:
Le paquet « geoip-database-contrib » nâa pas de version susceptible dâĂȘtre installĂ©e
Hello Lapineige !
Merci pour ta tentative ;-). Ce paquet nous pose pas mal de soucis. Grosso-modo :
geoip-database (+geoip-database-extra) ont une bonne licence et sont dans lâarchive principale de debian. Par contre, la prĂ©cision gĂ©ographique parait vraiment mauvaise
geoip-database-contrib a une moins bonne licence, est dans la partie âcontribâ de lâarchive mais a une bien meilleure prĂ©cision.
On utilise actuellement geoip-database-contrib dans lâinstallation, car de nos premiers tests les dĂ©pĂŽts contrib paraissaient actifs dans un yunohost de base.
Donc pour tester, peux-tu me dire par quoi finissent tes lignes dans /etc/apt/sources.list ? Il faudrait quâelles terminent par âmain contribâ (ou âmain contrib non-freeâ), probable que tu aies juste âmainâ Ă la fin.
SI câest bien ça, tu peux ajouter contrib en fin de ligne, apt-get update et ça devrait marcher.
Câest ça , lâinstallation a fonctionnĂ©.
Super ! TIens-moi au courant de ce qui marche/ne marche pas
Bonjour;
jâai tentĂ© lâinstallation de SHSD sur mon domaine principal et sur un yunohost fraichement installĂ©
jâobtiens une erreur
jâai recherchĂ© lâerreur UnicodeDecodeError et bon apparenment jâai des caractĂšres spĂ©ciaux
mais jâai pas trop compris comment contournĂ© le problĂšme
2019-06-14 13:06:45,897: WARNING - Traceback (most recent call last):
2019-06-14 13:06:45,898: DEBUG - + local exit_code=1
2019-06-14 13:06:45,898: WARNING - File â/var/www/shsd/workers/loggers/ssh-sshd.pyâ, line 87, in
2019-06-14 13:06:45,898: DEBUG - + â[â 1 -eq 0 â]â
2019-06-14 13:06:45,898: WARNING - accounts = parselog(maillog)
2019-06-14 13:06:45,898: DEBUG - + trap ââ EXIT
2019-06-14 13:06:45,899: WARNING - File â/var/www/shsd/workers/loggers/ssh-sshd.pyâ, line 29, in parselog
2019-06-14 13:06:45,899: DEBUG - + set +eu
2019-06-14 13:06:45,899: WARNING - for line in maillog:
2019-06-14 13:06:45,899: DEBUG - + echo -e â!!\n shsdâââs script has encountered an error. Its execution was cancelled.\n!!â
2019-06-14 13:06:45,899: WARNING - File â/usr/lib/python3.5/encodings/ascii.pyâ, line 26, in decode
2019-06-14 13:06:45,899: DEBUG - + type -t ynh_clean_setup
2019-06-14 13:06:45,899: WARNING - return codecs.ascii_decode(input, self.errors)[0]
2019-06-14 13:06:45,900: DEBUG - + ynh_die
2019-06-14 13:06:45,900: WARNING - UnicodeDecodeError: âasciiâ codec canât decode byte 0xe2 in position 5516: ordinal not in range(128)
2019-06-14 13:06:45,900: DEBUG - + local legacy_args=mc
2019-06-14 13:06:45,900: WARNING - !!
2019-06-14 13:06:45,900: DEBUG - + args_array=([m]=message= [c]=ret_code=)
2019-06-14 13:06:45,900: WARNING - shsdâs script has encountered an error. Its execution was cancelled.
2019-06-14 13:06:45,900: DEBUG - + declare -Ar args_array
2019-06-14 13:06:45,900: WARNING - !!
Bonjour,
Tu as des utilisateurs ou un domaine avec des caractÚres spéciaux ?
Lâouverture du fichier lâouvre avec un encodage qui est, normalement, lâencodage par dĂ©faut du systĂšme. On pourrait forcer Ă utf-8 (ou, mieux, en rĂ©cupĂ©rant lâexception), mais a priori jâai lâimpression que la locale de ton systĂšme nâest pas rĂ©glĂ©e de maniĂšre adaptĂ©e Ă pouvoir lire ton domaine/utilisateurs.
Peux-tu me donner le retour de la commande suivante :
python -c âimport locale;print (locale.getpreferredencoding())â
Et, aussi, essayer de visualiser le fichier /var/log/auth.log et voir si les caractÚres spéciaux apparaissent bien ?
julie
July 1, 2019, 7:59am
10
Hey there,
tested your app but it didnât install correctlyâŠ
Hereâs the log:
https://pastebin.com/MRtvPBBP
Hi,
Can you try to âapt install python3-requestsâ before installing SHSD ? Looks like a missing dependency (which is, in fact, not enforced in SHSD install script).
Cheers
Francois