pam-duress VS WSL-Hello-sudo

Compare pam-duress vs WSL-Hello-sudo and see what are their differences.

pam-duress

A Pluggable Authentication Module (PAM) which allows the establishment of alternate passwords that can be used to perform actions to clear sensitive data, notify IT/Security staff, close off sensitive network connections, etc if a user is coerced into giving a threat actor a password. (by nuvious)

WSL-Hello-sudo

Let's sudo by face recognition of Windows Hello on Windows Subsystem for Linux (WSL). It runs on both WSL 1 and WSL 2. This is a PAM module for Linux on WSL. (by nullpo-head)
Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
pam-duress WSL-Hello-sudo
18 7
1,315 1,155
- -
1.5 0.0
12 months ago 11 months ago
C Rust
GNU Lesser General Public License v3.0 only MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

pam-duress

Posts with mentions or reviews of pam-duress. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-11-10.
  • Delete files upon entering a certain password?
    1 project | /r/privacy | 18 Apr 2023
  • French Supreme court: Refusing to provide your phone password is a crime.
    5 projects | /r/privacy | 10 Nov 2022
    On Linux, there’s pam-duress: https://github.com/nuvious/pam-duress
  • vault timeout options
    1 project | /r/Bitwarden | 30 Jun 2022
    Multi-step timeout would be a good alternative, especially for mobile. For desktop, I have this awesome PAM set up to remove everything associated with my regular user account.
  • Quick Tip: Enable Touch ID for Sudo
    8 projects | news.ycombinator.com | 15 Jun 2022
    It's actually quite simple and readily available with PAM duress [0] (at least on Linux, I'm not sure about PAM on Mac). It was also discussed here already [1]. Still, you should consider that doing so might not work in your favor.

    [0] https://github.com/nuvious/pam-duress

    [1] https://news.ycombinator.com/item?id=28267975

  • Help with pam, specifically pam_duress
    2 projects | /r/Gentoo | 22 May 2022
    # Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 inherit pam toolchain-funcs VER_COMMIT="04e607f9ab674c8dbbf27ea8bb59158178a72f69" DESCRIPTION="A PAM module enabling special 'duress' passwords that will execute arbitrary scripts" HOMEPAGE="https://github.com/nuvious/pam-duress" SRC_URI="https://github.com/nuvious/${PN}/archive/${VER_COMMIT}.tar.gz -> ${P}.tar.gz" LICENSE="LGPL-3" SLOT="0" KEYWORDS="~amd64" IUSE="debug" DEPENDS="dev-libs/openssl sys-libs/pam" RDEPENDS="${DEPENDS}" S="${WORKDIR}/pam-duress-${VER_COMMIT}" src_prepare() { default sed -e "/^CC :=/s|:= .*|:= $(tc-getCC)|" -e "/^CFLAGS :=/s|-O2|${CFLAGS}|" \ -i Makefile || die } src_compile() { emake $(use debug && echo "debug") } src_install() { dobin bin/duress_sign dobin bin/pam_test dopammod bin/pam_duress.so einstalldocs }
  • Dead Man's Switch?
    3 projects | /r/selfhosted | 20 May 2022
    Using https://github.com/xmidt-org/dms & https://github.com/nuvious/pam-duress to shred LUKS headers: https://www.buskill.in/luks-self-destruct/
  • self destroying luks?
    3 projects | /r/linuxquestions | 8 May 2022
    maybe https://github.com/nuvious/pam-duress
  • can you set up a locking manager so when you log in with specific username/password it doesnt let you in and just takes a photo?
    1 project | /r/linux4noobs | 7 May 2022
    This repo gives you one such tool. It triggers a script when a specific password is used, and can then hand over control to the usual unlocking process or not (as you asked for). The script is whatever you want: taking a pic, maybe transmit it over the internet, possibly including live video, audio and location, distress message, etc. The script can also erase the app, itself and the log entries, then unlocking as if nothing had happend. A downside is that, at least from the repo description and instructions, the Duress action triggers on specific user and password, not on anything but the correct combination. Still, you asked for specific user and password.
  • Use secondary login password to trigger selfdestruct
    2 projects | /r/linux4noobs | 21 Feb 2022
  • Is it possible to enter fake pin code to "unlock" phone/computer?
    1 project | /r/privacy | 24 Jan 2022
    So far, I've only come across one solution for Linux, called PAM Duress. It executes a script when you log in, so you'd probably need to add some actions that make the files unavailable. I haven't used it myself, as I'm a Windows user.

WSL-Hello-sudo

Posts with mentions or reviews of WSL-Hello-sudo. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-06-15.
  • Quick Tip: Enable Touch ID for Sudo
    8 projects | news.ycombinator.com | 15 Jun 2022
    Well, `sudo` is a *nix binary, so Linux and macOS are your most popular options here.

    Fingerprint authentication for sudo was enabled by default on my Manjaro install after I enrolled a fingerprint so I guess popular Linux distributions configure it automatically. If yours doesn't, try the configuration methods on this page: https://wiki.archlinux.org/title/fprint or here: https://askubuntu.com/questions/1015416/use-fingerprint-auth... or consult your operating system's documentation.

    The big difference is that you need "pam_fprintd.so" instead of "pam_tid". On Ubuntu (or derived, probably), running "sudo pam-auth-update" will allow you to configure fingerprint authentication without needing to manually edit system files.

    Do note that if you use a more exotic window manager, any fancy visual sudo prompts may not know how to deal with such a system.

    If you're on Windows and want WSL with Windows Hello, there's this tool: https://github.com/nullpo-head/WSL-Hello-sudo which is a PAM library that will call into Windows Hello from WSL. Windows Hello should in turn support your fingerprint reader or other biometric authentication system configured for your PC.

  • WSL Hello Sudo: Face Recognition of Windows Hello on Windows Subsystem for Linux
    1 project | /r/patient_hackernews | 1 Mar 2021
    1 project | /r/hackernews | 1 Mar 2021
    4 projects | news.ycombinator.com | 1 Mar 2021
    What kind of prompt is this? It looks like Windows Terminal running Bash, but are the icons PNGs (windows + home), or a specific type-face rendering emoji?

    https://github.com/nullpo-head/WSL-Hello-sudo/blob/master/de...

  • Use Touch ID for Sudo on Mac
    6 projects | news.ycombinator.com | 1 Mar 2021
    Similarly for WSL2 using Windows Hello:

    https://github.com/nullpo-head/WSL-Hello-sudo

  • WSL-Hello-sudo - sudo by face recognition of Windows Hello on WSL
    1 project | /r/rust | 19 Jan 2021

What are some alternatives?

When comparing pam-duress and WSL-Hello-sudo you can also consider the following projects:

obs-studio-node - libOBS (OBS Studio) for Node.Js, Electron and similar tools

pam-watchid - PAM plugin module that allows the Apple Watch to be used for authentication

pam_duress - A pam module written in C for duress codes in linux authentication

sekey - Use Touch ID / Secure Enclave for SSH Authentication!

tc-play - Free and simple TrueCrypt/VeraCrypt Implementation based on dm-crypt

sudo-touchid - A fork of `sudo` with Touch ID support.

Wasted - Lock and wipe on emergency.

rdpwrap - RDP Wrapper Library

packages

pam_reattach - Reattach to the user's GUI session on macOS during authentication (for Touch ID support in tmux)

dms - A dead man's switch that executes one or more actions if not actively pinged via its HTTP endpoint

wsl-distrod - Distrod is a meta-distro for WSL 2 which installs Ubuntu, Arch, Debian, Gentoo, etc. with systemd in a minute for you. Distrod also has built-in auto-start feature on Windows startup and port forwarding ability.