ToDo for Developers

From Kicksecure
< Dev
Jump to navigation Jump to search

TODO

TODO DEV[edit]

calamares - make 3.3.11 available in Bookworm[edit]

  • necessary to fix bugs related to the disk encryption user interface
  • Sid and Trixie are still at 3.3.9, does maintainer need help packaging 3.3.11?
    • Maintainer uploaded 3.3.11 to Sid on November 7: https://tracker.debian.org/news/1583270/accepted-calamares-3311-1-source-into-unstable/archive.org Should migrate into Testing relatively soon.
    • Hung up on calamares-extensions 3.3.1, and while calamares-extensions 3.3.11 is technically available, a real release of it hasn't been made. Pinged the Calamares devs to see if they could do that, after than I'll ping the Debian Qt/KDE team to get them to package it and that should release calamares into Trixie.
  • Backport 3.3.11 after it is available in Trixie

calamares - implement - Allow distros to restrict what filesystems can be used in manual partitioning[edit]

umask research[edit]

Qubes umask ticket[edit]

Qubes doas ticket[edit]

investigate porting from sudo to doas[edit]

review and harden our /etc/sudoers.d snippets[edit]

  • review
  • harden, if there is something to harden

review and harden our pkexec policykit polkit policy files[edit]

  • review
  • harden, if there is something to harden
./packages/kicksecure/anon-connection-wizard/usr/share/polkit-1/actions/com.kicksecure.anon-connection-wizard.policy
./packages/kicksecure/live-config-dist/usr/share/polkit-1/actions/com.kicksecure.install-host-calamares-wrapper.policy

doas - submit a pwfeedback feature request[edit]

  • todo

doas - submit a /usr/local/etc/doas.d /etc/doas.d drop-in configuration feature request[edit]

  • todo
  • parse only configuration files ending with .conf (to avoid parsing editor backup files ending with "~", ".bak", ".dpkg-old" or similar)

create /usr/local/etc/doas.d /etc/doas.d parser and /etc/doas.conf configuration file creator[edit]

  • parse /usr/local/etc/doas.d
  • parse /etc/doas.d
  • parse only configuration files ending with .conf
  • do not overwrite a file that does not contain our auto generated configuration file (could be user custom file)
    • echo a warning in that case
  • atomic, create variable then use sponge
  • add to security-misc
  • add a dpkg trigger
  • /etc/doas.conf would require a header pointing out it is auto-generated.
## Do not edit this file!
## Please create and add modifications to the following file instead:
## /usr/local/etc/torrc.d/50_user.conf

## This file was auto generated by '$BASH_SOURCE' at APT package installation time (a dpkg trigger).

doas - add to security-misc permission hardener whitelist[edit]

  • todo

doas - create /etc/doas.d configuration snippets[edit]

audio[edit]

audio generally[edit]

VirtualBox Intel HD Audio and PipeWire Incompatibility / Audio broken after increasing ram to 5 GB / No sound after latest updates - PipeWire Bug?[edit]

Split the security-misc into security-misc-shared, security-misc-desktop and security-misc-server[edit]

Kicksecure Firewall[edit]

https://forums.kicksecure.com/t/kicksecure-firewall/378/10archive.org

Meta Packages, Kicksecure, Whonix - Desktop versus Server[edit]

https://forums.kicksecure.com/t/meta-packages-kicksecure-desktop-versus-kicksecure-server/415archive.org

Secure Mount Options for better Security Hardening[edit]

wipe video RAM[edit]

# zero video RAM to prevent leakage
# see (CC BY-SA 4.0): https://www.adlerweb.info/blog/2012/06/20/nvidia-x-org-video-ram-information-leak
export R600_DEBUG=zerovram;
export AMD_DEBUG=zerovram;
export RADV_DEBUG=zerovram;
  • if doable with reasonable effort

Tor 0.4.8.9 broken in combination with vanguards[edit]

VirtualBox serial console[edit]

KVM related[edit]

KVM - 3D Graphics Acceleration - SPICE - Testing - drm[edit]

KVM - 3D Graphics Acceleration - Performance Test - Display SDL[edit]

KVM - 3D Graphics Acceleration - Performance Test - Display GDK[edit]

apparmor.d review[edit]

apt-get - implement --restrict-install-recommends proof of concept[edit]

  • todo

WAITING ON[edit]

live-build - add mmdebstrap support[edit]

live-build - use APT with error-on-any[edit]

  • use option apt --error-on=any for all invocations of apt-get (update)
  • only needed for apt-get update, otherwise superfluous but non-issue
  • this is a security feature
  • this is to prevent inconsistent images that succeeded connecting to the "normal" repository but failed to connect to the security repository
  • can be implemented using already existing live-build option --apt-options OPTION|"OPTIONS"?
  • Requires a patch to live-build. Using --apt-options results in a build failure with E: Command line option --error-on=any is not understood in combination with the other options
  • Patch written, submitted upstream as https://salsa.debian.org/live-team/live-build/-/merge_requests/371archive.org. New configuration option now used in my branch of live-build.

security-misc - investigate PAM[edit]

trixie port - meta packages[edit]

review and test IPv6 support pull requests[edit]

live-build - local repository support[edit]

live-build - grub.cfg GRUB configuration - loopback.cfg[edit]

  • add https://www.supergrubdisk.org/wiki/Loopback.cfgarchive.org compatibility (as as Debian Live ISO)
  • Requires fixes in live-build and Dracut to make work:
    • live-build is specifying the wrong kernel parameter for loopback booting when using dracut - it's using findiso when it should be using iso-scan/filename. A fix for this has been integrated into my fork of live-build. MR to upstream here: https://salsa.debian.org/live-team/live-build/-/merge_requests/376archive.org
    • dracut is failing to run udevadm trigger during its device scanning, so even when it finds the ISO and attaches it as a loopback device, it never finds it. Only appears to be a problem on Debian Bookworm, Trixie works just fine.
      • Task is on hold until we migrate to Trixie.
    • (Side note: At least on QEMU, loopback mounts in GRUB fail with out-of-memory errors if the system uses UEFI. With BIOS it works fine. Not quite sure why this happens, very well may be an issue with QEMU's implementation of UEFI hardware or my usage thereof.)

live-build - lb-binary should not run apt-get update[edit]

REVIEW PLEASE[edit]

apt-get - recommends can no longer get installed after installation with --no-install-recommends - bug report[edit]

`apt install --no-install-recommends diffoscope`

User story: Good, I did not want these recommends. And I didn't get these. Great. But... Now I noticed that i cannot figure it out or something and want these dependencies anyhow.

`apt install diffoscope`

  • expected result: `Recommends:` get installed now
  • actual result: not happening

`sudo apt satisfy diffoscope` or even `sudo apt install --install-recommends diffoscope` does not install the `Recommends:`.

The only way to get the dependency is `apt remove` followed by `apt install`.

grub boot menu - regression - mini symbol stuck bug[edit]

start discussion about Weak-Depends on debian-devel mailing list[edit]

calamares - timezone issue[edit]

calamares - file system unit test[edit]

review kloak makefile pull request[edit]

  • https://github.com/Whonix/kloak/pull/5archive.org
  • Review complete, nothing malicious found, some quality and functionality issues were found for which I suggested several changes.
  • All issues fixed, approved PR.

live-build - mmdebstrap should use security.debian.org repository[edit]

research archivebox and alternatives[edit]

  • installation source issue
    • nice but optional, because might be unavailable: signed releases available? available from packages.debian.org?
      • A Docker image is available, but Docker has supposedly had severe security issues related to image verification in the past: https://titanous.com/posts/docker-insecurityarchive.org
      • There's also a package available via pip but it seems to make signing of releases optional and GPG support is very limited, so just because the package is on PyPI doesn't mean it's signed.
      • No signed release visible on releases page.
  • predictable links issue
    • web.archive.org is nice because using our mediawiki-link-to-archivearchive.org MediaWiki extension, each link gets appended with an archive symbol linking to https://web.archive.org/archive/<original-link>.
    • investigate if archivebox (or alternative) has such a feature
    • post a feature request if not
    • if such a feature does not exist, then mass wiki editing will be required to append links to our self-hosted archivebox (or alternative)
  • public archive issue
    • Ideally, the archive would not be "our archive" but a public archive.
    • That does not mean, that we want to host a public archivebox archive that anyone can use. That would unfortunately be problematic (disk space, legal issues).
    • We're already offering various downloadable backups on the Offline Documentation wiki page (including rsync access).
    • For archived links it would be good if these could be offered in a backup format available to the public. I.e. someone could use rsync and download all links that we archived.
    • With archivebox that might be problematic because links might be unpredictable. Archivebox has a search function but it relies on server functionality, server database (?), which we probably cannot share as is.
      • Should we nuke admin credentials so we can share the database with the public for backup purposes?
  • design:
    • Keep archive box web interface accessible to admins and bots only. (security)
    • Keep link archival accessible to admin and bots only. (legal)
    • Keep archived links reading accessible to the public.
    • After wiki backup (already existing on the server) using mediawiki-shell, have a script that can parse the wiki for new links and add them to archivebox.
      • Needs support for a list of domains to avoid archiving (since archiving might be broken).
      • Due to some links being offline, often, need to probably fail open if some links are not archiveable.

ARCHIVED[edit]

salsa debian - salsa signing key setup[edit]

kloak - Qubes support - implement kloak within qubes-gui-daemon[edit]

Implement live mode with 90overlayfs[edit]

live-build - live_build_package_list_kicksecure - do not hardcode amd64[edit]

  • live-build-data/live-build-config/live_build_package_list_kicksecure
linux-image-amd64
linux-headers-amd64

live-build bug - cannot create /dev/null: Permission denied[edit]

build machine:

  • CI: passing
  • using a Qubes Kicksecure based App Qube: broken
  • /usr/bin/apt-key? Where in derivative-maker or live-build is /usr/bin/apt-key being used anyhow?
    • apt update is calling it. Verified by chrooting into the broken live-build chroot and running sudo apt update.
  • Note: apt-key is deprecated as per apt-key Debian upstream man page anyhow and should not be used.
    • Since this is apt itself using it, I think this is working as intended.
  • Root cause of the problem: /home is mounted with nodev inside Kicksecure Qubes. This results in the chroot's /dev/null being unwritable even by root.
  • Should be fixed here: https://github.com/ArrayBolt3/derivative-maker/tree/arraybolt3/home-nodev-fixarchive.org Remounts /home with the dev option to resolve the problem.

uwt torsocks TORSOCKS_LOG_LEVEL[edit]

  • check if package uwt /etc/sudoers.d/uwt is still required
  • https://forums.whonix.org/t/disable-torsocks-warning-spam/19084archive.org
  • if still an issue, please send a pull request to upstream making TORSOCKS_LOG_LEVEL configurable in /etc/tor/torsocks.conf
  • This does not appear to be an issue any longer. I commented out all `TORSOCKS_LOG_LEVEL` setting lines in `uwt.sh`, `uwtwrapper`, and `/etc/sudoers.d/uwt`, and saw no log messages similar to that in the logs. I also did export TORSOCKS_LOG_LEVEL=5; sudo -E torsocks apt-get.anondist update, and while this produced lots of debugging messages from torsocks due to the high verbosity level it was set to, none of those messages were the offending message from the linked bug report. With any lower loglevel, torsocks was silent.

url_to_unixtime review and hardening[edit]

  • https://github.com/Kicksecure/sdwdate/blob/master/usr/bin/url_to_unixtimearchive.org
  • (mostly) out of scope? validation of command line inputs
  • out of scope: timeout - this is enforced on sdwdate level and does not need to be implemented at the url_to_unixtime level
  • todo: check if minimum + maximum string lengths are properly enforced
  • already has a dedicated AppArmor profile:
  • threat model:
    • remote code execution
    • outputting too short/long/non-numeric strings or malicious binary data that could confuse/exploit sdwdate
  • Issues found:
    • request_data_from_remote_server: The remote_port argument is never used in this function (or anywhere in the script). There doesn't appear to be an immediately obvious way to even use an argument like this with Requests.
    • data_to_http_time does not enforce a maximum number of characters in the http_time string. This means that even an extremely long string will be parsed as a date later on in http_time_to_parsed_unixtime, which could theoretically be used to consume resources on a machine under attack.
    • Multiple locations in the code will print to stderr values that may be bad in one way or another (most notably, every single HTTP header the script gets from the server will be printed in many instances) in the event of an error condition. The code specifically notes that it "prints debug and errors to stderr", thus I do not believe this is a serious concern. I didn't see any substantial processing happening on stderr elsewhere in sdwdate except to ensure it wasn't excessively large and to print it to stdout, which I believe ends up in the journalctl logs.
    • unixtime_sanity_check doesn't ensure that the timestamp it returns is non-negative.
    • The socks module is being imported for no reason. requests does not require it to be imported to access Tor over a socks5 proxy.
    • Some miscellaneous unused variables, unneeded parentheses, and typos are floating around according to PyCharm.
  • Other than that, it seems good:
    • minimum date string length is enforced in data_to_http_time
    • maximum timestamp length is enforced in unixtime_sanity_check
    • only a sufficiently short timestamp derived from a sufficiently long date string will be printed to stdout (only a single print command is used for that purpose, and it only prints a variable that has passed all checks)
    • I don't see any RCE risk aside from unknown and unknowable issues in the Python interpreter itself. The only bit of code that's really scary in this respect is when http_time_to_parsed_unixtime calls dateutil and trusts it to properly handle arbitrary, untrusted date headers from HTTP connections. dateutil is written entirely in Python though, so this isn't much of a threat - the worst that could happen is url_to_unixtime could crash, or return a garbage time value. (However, see the note about a lack of negative time prevention above.)
  • sdwdate branch with all listed issues resolved: https://github.com/ArrayBolt3/sdwdate/tree/arraybolt3/url-to-unixtime-tidyarchive.org

tbb version parser hardening[edit]

  • todo: discuss
  • The local version parser function `tbbversion_installed` could be moved to /usr/bin/update-torbrowser for now as it is considered low risk.
  • The remote version parser function `tbbversion` requires hardening:
    • Out of scope: `tbbversion` taking too much time (can be easily handled from update-torbrowser by using standard Linux program timeout).
    • Currently has good error handling, but errors have not been reported yet. We could give up on good error handling except for distinguishing between exit 0 (ok) and exit 1 (error).
    • Needs to be written as securely as possible:
      • Attack surface currently includes at least: `jq`, `bash`, `/usr/libexec/msgcollector/striphtml`.
      • Remote version file cannot be verified (only through HTTPS or onion).
      • todo research: Will upstream provide signed version files? How does Tor Browser internally verify the version file? Can we use the same mechanism?
      • Version parser should be moved into its own standalone script.
      • Should it be rewritten in Python for better security?
      • The new version parser could be confined using AppArmor.
      • The version parser would either accept an input file and output file, with no other console output:
        • If the version parser gets exploited but is still contained by AppArmor, malicious advice could still be outputted to the console. Therefore, error codes should instead be communicated through exit codes:
          • Exit 1: General, not specifically handled/expected error.
          • Exit 2: Input file does not exist.
          • Exit 3: `jq` failed.
          • Etc.
      • String length sanity checking with if [ "$actual_string_length" -gt "$max_string_length" ]; then makes a lot of sense but should not be done within the version parser:
        • If `jq` is compromised, the string length check could be omitted. Therefore, string length checking should be handled externally.
        • Assumption: If string length is kept minimal, exploitation might be difficult or even impossible.
        • Version number is currently 14.0.2. Maximum string length is 20 characters. Since version numbers are short and reasonable, the maximum string length could be further reduced.
        • If the version parser is compromised, outputting evilevil instead of 14.0.2 might be insufficient to exploit update-torbrowser. However, allowing the parser to output a 10 MB file increases risk significantly.
        • A robust design could involve the version parser accepting an input file and generating an output file, with no console output allowed:
          • File-based input/output design allows update-torbrowser to safely check file size. If too large, it can be rejected as either a bug or an exploitation attempt.
        • Separation between version parser (AppArmor'ed) + file size checker (AppArmor'ed) + tb-updater might be overkill?
        • Should be placed into /usr/libexec/tb-updater?
    • Should Tor Project and ARM64 version parsers be different?
  • After discussion with Patrick, this is the solution I wrote:
    • Parsing of untrusted input is entrusted to a dedicated Python script that is heavily confined using AppArmor.
    • The original tbbversion function is still necessary to sanitize the output from this script.
    • The script reads an input file, writes an output file, and gives an exit code indicating if the operation was successful. Console output to stderr is generated for debugging purposes, but is discarded by tbbversion.
    • The exit codes are:
      • 0: Success.
      • 1: Invalid arguments.
      • 2: File I/O issues (file doesn't exist or cannot be read from/written to)
      • 3: Parse failure (invalid or malicious input)
    • tbbversion runs a battery of checks against the returned value, ensuring it is small, contains only ASCII chars, non-empty, and looks like a valid version number. Once the full battery of tests passes, the value is considered trusted and is passed to tbbversion's caller.
    • Callers source /usr/libexec/tb-updater/version-validator, set environment variables, and call tbbversion to do Tor Browser version parsing. This is identical to the previously existing API, with two exceptions:
      • tbbversion is now part of a script called version-validator. version-parser is now the confined Python script that does the real parsing. Thus scripts that rely on tbbversion need to be changed to source the correct script.
      • tbbversion supports Tor Browser ARM64 JSON from SourceForge. An environment variable tbb_version_parse_as_arm64 must be set to y to attempt to parse this JSON format.
    • Code changes to tb-updater: https://github.com/ArrayBolt3/tb-updater/tree/arraybolt3/json-parse-hardeningarchive.org
    • Code changes to developer-meta-files: https://github.com/ArrayBolt3/developer-meta-files/tree/arraybolt3/json-parse-hardeningarchive.org
    • This is ready for review, a full test plan was developed, executed, and passed.

archive.today link archiving[edit]

  • mediawiki-shell already has code for downloading all wiki pages to the disk in mediawiki markup format, as well as parsing all local wiki text pages for links tool:
    • mw-specific-backup-kicksecure
    • mw-specific-backup-whonix
    • git_mediawiki_backup_folder variable: todo
   TMPFOLDER=/tmp/mediawiki-shell-temp \
   wiki_backup_folder="$git_mediawiki_backup_folder" \
   wiki_namespace_list_extra="274 500" \
   "$tool"
  • (FYI: this is used server-side to keep updating https://github.com/Kicksecure/kicksecure-wiki-backuparchive.org / https://github.com/Whonix/whonix-wiki-backuparchive.org)
  • todo: implement and execute archival of all links using archive.today CLI, create a list of links and archived links (extendible format original-link, archive.today, archivebox, ...)
  • todo: mass edit the wiki to add the archived links.
    • Should we use a wiki template such as Template:Archive_link?
      • This might require a custom plugin, but I believe it should work. Archive.today works with links such as https://archive.today/https://google.comarchive.org - clicking a link such as this will take you to a search page showing all of the archived copies archive.today has of that particular link so far. The user is then free to choose which version to look at
      • Custom mediawiki extension already existing: https://github.com/Kicksecure/mediawiki-link-to-archivearchive.org
        • Moved to separate task.
        • It's already adding the web archive links.
        • Could be extended to add the archive.today links.
    • Or only append the archive.today link behind the link?
      • Requires lots of manual work. The code I had that was rendering a fairly nice-looking archive "button" was something along the lines of C Programming for DOS tutorial, part 5archive.org Link to archive.today version. Using a plugin to automate that would be very valuable. Additionally, by doing this, we don't have to automatically archive every link someone adds (which CAPTCHAs make nearly impossible). People can simply archive the links as they add them, and people who find an unarchived link can archive it right then and there.
    • To be kept in mind: if archive.today goes down one day, we might need to mass wiki edit to remove these links.
      • Use of a plugin like what we're using for the archive.org links should hopefully make that easy.

Plan #2:

  • Current implementation plan for archiving:
    • 1. Download all wiki pages from Kicksecure and Whonix wikis
    • 2. Get all links from them
    • 3. For each link, check if already in log file. If found, skip. If not continue.
    • 4. search the link on archive.today
      • If found:
        • ok, skip
      • If not found:
        • Archive it
    • When a CAPTCHA page is hit, stop and wait for the user to provide a new CAPTCHA cookie
    • Needs a hardcoded list of excluded domain names. Some domains unfortunately can not be archived. Either failing or only unusable archived results. For example, archive.ph probably cannot archive web archive links.

update #2:

  • no need to automatically re-archive links, can actually worsen the quality

kloak - add Qubes support[edit]

Aaron:

kloak - Qubes support - consider using Qubes API for orchestration[edit]

document boot-repair[edit]

  • Add to Broken Boot
  • Decided against doing this. Boot-Repair has several features that upload system info and usage statistics to the Internet, some of which are potentially dangerous. The tool is useful when used properly, but it's too easy for someone to accidentally upload something they didn't want to upload.

mediawiki-shell self-introduction[edit]

  • Please look around in mediawiki-shell source code folder to get an idea about all its already existing functionality. This will be handy for follow-up tasks below.
  • Done, got a good idea of the way it works and what features were needed for implementing the archiver.

add py-archive-today to helper-scripts[edit]

automation of tb-updater hardcoded version number update - #2[edit]

add archive.ph support to mediawiki-link-to-archive mediawiki extension[edit]

  • Custom mediawiki extension already existing: https://github.com/Kicksecure/mediawiki-link-to-archivearchive.org
  • It's already adding the web archive links.
  • Please add archive.ph links.
  • Based on archive.ph supporting https://archive.today/https://google.com format.
  • No testing required. (Because setting up a mediawiki test environment can be quite involved.)
  • Branch with archive.today support here: https://github.com/ArrayBolt3/mediawiki-link-to-archive/tree/arraybolt3/archive-todayarchive.org
    • Untested, however I did lint the code using php -l.
    • See TODOs in code, this will not be usable as-is since an image needs added to the server and a CSS class may need to change.
    • The intended result of the code is that an archive.today link icon will be added to every normal link, immediately after the archive.org icon. Onion links and archive.org links should not have an archive.today link icon added after them, whereas links to archive.today should have only an archive.today link icon added after them (with similar behavior to the existing link buttons for archive.org links and onion links).

implement archive.today CLI frontend[edit]

automation of tb-updater hardcoded version number update[edit]

live-build - build broken - kicksecure repository apt-cacher-ng configuration[edit]

[2024-11-13 13:31:43] lb chroot_apt install --verbose --debug
D: Reading configuration file config/common
D: Reading configuration file config/bootstrap
D: Reading configuration file config/chroot
D: Reading configuration file config/binary
D: Reading configuration file config/source
P: Configuring file /etc/apt/apt.conf
[2024-11-13 13:31:43] lb chroot_archives binary install --verbose --debug
D: Reading configuration file config/common
D: Reading configuration file config/bootstrap
D: Reading configuration file config/chroot
D: Reading configuration file config/binary
D: Reading configuration file config/source
P: Configuring file /etc/apt/sources.list
D: Executing: apt-get -o Acquire::http::Proxy=http://127.0.0.1:3142 -o Acquire::https::Proxy=http://127.0.0.1:3142 -o Acquire::tor::Proxy=http://127.0.0.1:3142 -o APT::Update::Error-Mode=any -o Acquire::Languages=none -o Acquire::IndexTargets::deb::Contents-deb::DefaultEnabled=false -o Apt::Install-Recommends=false -o Acquire::Retries=5 -o Dpkg::Options::=--force-confnew --yes --allow-remove-essential -o APT::Color=false update
Ign:1 tor+https://deb.kicksecure.com bookworm InRelease
Get:2 http://HTTPS///deb.debian.org/debian bookworm InRelease [151 kB]
Get:3 http://HTTPS///deb.debian.org/debian-security bookworm-security InRelease [48.0 kB]
Get:4 http://HTTPS///deb.debian.org/debian bookworm-updates InRelease [55.4 kB]
Get:5 http://HTTPS///deb.debian.org/debian bookworm-backports InRelease [59.0 kB]
Get:6 http://HTTPS///fasttrack.debian.net/debian-fasttrack bookworm-fasttrack InRelease [12.9 kB]
Get:7 http://HTTPS///deb.debian.org/debian bookworm/non-free amd64 Packages [97.3 kB]
Get:8 http://HTTPS///deb.debian.org/debian bookworm/non-free-firmware amd64 Packages [6236 B]
Get:9 http://HTTPS///deb.debian.org/debian bookworm/main amd64 Packages [8789 kB]
Get:10 http://HTTPS///deb.debian.org/debian bookworm/contrib amd64 Packages [54.1 kB]
Get:11 http://HTTPS///deb.debian.org/debian-security bookworm-security/main amd64 Packages [204 kB]
Get:12 http://HTTPS///deb.debian.org/debian-security bookworm-security/contrib amd64 Packages [644 B]
Get:13 http://HTTPS///deb.debian.org/debian-security bookworm-security/non-free-firmware amd64 Packages [688 B]
Get:14 http://HTTPS///deb.debian.org/debian bookworm-updates/main amd64 Packages [2468 B]
Get:15 http://HTTPS///deb.debian.org/debian bookworm-updates/non-free amd64 Packages [12.8 kB]
Get:16 http://HTTPS///deb.debian.org/debian bookworm-updates/contrib amd64 Packages [768 B]
Get:17 http://HTTPS///deb.debian.org/debian bookworm-updates/non-free-firmware amd64 Packages [616 B]
Get:18 http://HTTPS///deb.debian.org/debian bookworm-backports/non-free amd64 Packages [11.1 kB]
Get:19 http://HTTPS///deb.debian.org/debian bookworm-backports/main amd64 Packages [255 kB]
Get:20 http://HTTPS///deb.debian.org/debian bookworm-backports/non-free-firmware amd64 Packages [3852 B]
Get:21 http://HTTPS///deb.debian.org/debian bookworm-backports/contrib amd64 Packages [5624 B]
Get:22 http://HTTPS///fasttrack.debian.net/debian-fasttrack bookworm-fasttrack/contrib amd64 Packages [7332 B]
Get:23 http://HTTPS///fasttrack.debian.net/debian-fasttrack bookworm-fasttrack/main amd64 Packages [5296 B]
Ign:1 tor+https://deb.kicksecure.com bookworm InRelease
Ign:1 tor+https://deb.kicksecure.com bookworm InRelease
Ign:1 tor+https://deb.kicksecure.com bookworm InRelease
Ign:1 tor+https://deb.kicksecure.com bookworm InRelease
Err:1 tor+https://deb.kicksecure.com bookworm InRelease
  Invalid response from proxy: HTTP/1.0 403 CONNECT denied (ask the admin to allow HTTPS tunnels)     [IP: 127.0.0.1 3142]
Fetched 9782 kB in 31s (315 kB/s)
Reading package lists...
E: Failed to fetch tor+https://deb.kicksecure.com/dists/bookworm/InRelease  Invalid response from proxy: HTTP/1.0 403 CONNECT denied (ask the admin to allow HTTPS tunnels)     [IP: 127.0.0.1 3142]
E: Some index files failed to download. They have been ignored, or old ones used instead.
E: An unexpected failure occurred, exiting...
+ true '############################################################'
+ true ERROR:
+ true '          $0: ././build-steps.d/2800_create-lb-iso'
+ true '$BASH_SOURCE: pre'
+ true '      message: ERROR: Live build binary stage failed!'
+ true '############################################################'
+ error_reason='message: ERROR: Live build binary stage failed!
  • This is the result of apt-cacher-ng HTTPS tunneling not being enabled on the CI server. Our sources.list files from repository-dist and anon-apt-sources-list are causing the problem.
  • There is no practical, upstreamable way to only insert the sources.list files into the system after all apt commands have run. At best, it might be possible to insert our sources.list files immediately after sqaushfs-tools is installed but immediately before the squashfs is generated, then immediately delete them as soon as the squashfs was done being generated (as further apt commands are run after this point). This would be extremely hacky and would mandate that we keep our own live-build fork indefinitely, as such a change could not be practically upstreamed.
  • Enabling apt-cacher-ng HTTPS tunneling is undesirable, as it could result in the wrong packages being used in the ISO build.
  • One option might be to simply not install the sources.list files on the ISO at all, but rather have a script in the live session generate them, and have Calamares and debian-installer create them when appropriate. This goes against the design we want, but at this point it may be the only good solution.
  • The solution we ended up using was to modify repository-dist to generate the derivative.list file when a particular systemd unit runs, then enable that system unit only when the --repo true option is set in derivative-maker. Options to repository-dist are passed via a file at /var/lib/repository-dist/derivative_apt_repository_opts, which is written at build time by the build system and then loaded at runtime by the systemd unit.
  • Current fix branches:

live-build - build failing due to fasttrack not using apt-cacher-ng syntax[edit]

[2024-11-12 10:17:17] lb bootstrap_archives --verbose --debug
D: Reading configuration file config/common
D: Reading configuration file config/bootstrap
D: Reading configuration file config/chroot
D: Reading configuration file config/binary
D: Reading configuration file config/source
P: Configuring file /etc/apt/sources.list
D: Executing: apt-get -o Acquire::http::Proxy=http://127.0.0.1:3142 -o Acquire::https::Proxy=http://127.0.0.1:3142 -o Acquire::tor::Proxy=http://127.0.0.1:3142 -o APT::Update::Error-Mode=any -o Acquire::Languages=none -o Acquire::IndexTargets::deb::Contents-deb::DefaultEnabled=false -o Apt::Install-Recommends=false -o Acquire::Retries=5 -o Dpkg::Options::=--force-confnew --yes --allow-remove-essential -o APT::Color=false update
Ign:1 https://fasttrack.debian.net/debian-fasttrack bookworm-fasttrack InRelease
Get:2 http://HTTPS///deb.debian.org/debian bookworm InRelease [151 kB]
Get:3 http://HTTPS///deb.debian.org/debian-security bookworm-security InRelease [48.0 kB]
Get:4 http://HTTPS///deb.debian.org/debian bookworm-updates InRelease [55.4 kB]
Get:5 http://HTTPS///deb.debian.org/debian bookworm-backports InRelease [59.0 kB]
Get:6 http://HTTPS///deb.debian.org/debian bookworm/non-free amd64 Packages [97.3 kB]
Get:7 http://HTTPS///deb.debian.org/debian bookworm/contrib amd64 Packages [54.1 kB]
Get:8 http://HTTPS///deb.debian.org/debian bookworm/main amd64 Packages [8789 kB]
Get:9 http://HTTPS///deb.debian.org/debian bookworm/non-free-firmware amd64 Packages [6236 B]
Get:10 http://HTTPS///deb.debian.org/debian-security bookworm-security/contrib amd64 Packages [644 B]
Get:11 http://HTTPS///deb.debian.org/debian-security bookworm-security/main amd64 Packages [204 kB]
Get:12 http://HTTPS///deb.debian.org/debian-security bookworm-security/non-free-firmware amd64 Packages [688 B]
Get:13 http://HTTPS///deb.debian.org/debian bookworm-updates/main amd64 Packages [2468 B]
Get:14 http://HTTPS///deb.debian.org/debian bookworm-updates/non-free-firmware amd64 Packages [616 B]
Get:15 http://HTTPS///deb.debian.org/debian bookworm-updates/non-free amd64 Packages [12.8 kB]
Get:16 http://HTTPS///deb.debian.org/debian bookworm-updates/contrib amd64 Packages [768 B]
Get:17 http://HTTPS///deb.debian.org/debian bookworm-backports/non-free amd64 Packages [11.1 kB]
Get:18 http://HTTPS///deb.debian.org/debian bookworm-backports/non-free-firmware amd64 Packages [3852 B]
Get:19 http://HTTPS///deb.debian.org/debian bookworm-backports/main amd64 Packages [255 kB]
Get:20 http://HTTPS///deb.debian.org/debian bookworm-backports/contrib amd64 Packages [5624 B]
Ign:1 https://fasttrack.debian.net/debian-fasttrack bookworm-fasttrack InRelease
Ign:1 https://fasttrack.debian.net/debian-fasttrack bookworm-fasttrack InRelease
Ign:1 https://fasttrack.debian.net/debian-fasttrack bookworm-fasttrack InRelease
Ign:1 https://fasttrack.debian.net/debian-fasttrack bookworm-fasttrack InRelease
Err:1 https://fasttrack.debian.net/debian-fasttrack bookworm-fasttrack InRelease
  Invalid response from proxy: HTTP/1.0 403 CONNECT denied (ask the admin to allow HTTPS tunnels)     [IP: 127.0.0.1 3142]
Fetched 9757 kB in 31s (314 kB/s)
Reading package lists...
E: Failed to fetch https://fasttrack.debian.net/debian-fasttrack/dists/bookworm-fasttrack/InRelease  Invalid response from proxy: HTTP/1.0 403 CONNECT denied (ask the admin to allow HTTPS tunnels)     [IP: 127.0.0.1 3142]
E: Some index files failed to download. They have been ignored, or old ones used instead.
E: An unexpected failure occurred, exiting...

test and review archive.today CLI frontend[edit]

  • archive.today is interesting because it is an independent third-part
  • candidate: wabarc/archive.is (supports CAPTCHA avoidance through cookie)
  • https://github.com/wabarc/archive.is?tab=readme-ov-file#archivetoday-is-unavailablearchive.org
    • test for functionality first in a throwaway VM
      • Builds with Go 1.22 from bookworm-backports (sudo apt install -t bookworm-backports golang), to build you must go into the cmd/archive.is directory first, then go build
    • test functionality and CAPTCHA avoidance
      • Searching appears to work without a CAPTCHA avoidance cookie, archiving requires the cookie.
      • Takes about a minute or two for a small page to be archived, then an additional five to ten minutes before that URL will show up when searched for using ./archive.is -p https://urlarchive.org in searches.
      • Tor is supported, but it's unclear how to make that support work, and research was inconclusive, filed a feature request to fix this at https://github.com/wabarc/archive.is/issues/58archive.org
    • test archive.today onion (might help with CAPTCHA avoidance), will help with IP restrictions
      • http://archiveiya74codqgiixo33q62qlrqtkgmcitqx5u2oeqnmn5bpcbiyd.onion
      • TODO, need to figure out how to properly trigger the use of Tor first.
    • review for malicious content
      • Reviewed main package code, no malicious content found. Code looked mostly straightforward, though it made use of some advanced Go techniques. The code does however have a number of dependencies, at least three of which are written by this tool's author and one of which is relatively obscure judging from the Github star count, so I want to review those too (and potentially their sub-dependencies as well).
    • create a github fork from reviewed version (just pressing fork button, no other changes, unless required)
      • No fork created yet as I'm not yet ready to declare this safe, however the commit I have and am reviewing is f6bc92ea8a399df64d4772de73ecf695e48ac16b
  • After initial investigation, we believe it will be safer and better to implement our own CLI frontend for this, using the Go code from wabarc's tool as inspiration.

investigate doas[edit]

  • determine if it's a suitable replacement for sudo in Kicksecure
    • will using it resolve https://github.com/sudo-project/sudo/issues/415archive.org? It has to allow nopasswd exceptions to be distinguished from normal authentication in PAM
      • Yes, it will. I tested running a nopass command with doas and it did NOT reset the faillock counter. I checked the doas source code, and it looks like this is because doas nopass exceptions don't go through PAM at all (though I didn't thoroughly check the code so I'm not entirely sure of this).
  • estimate work required to port to it
  • Research and time estimate recorded at https://forums.whonix.org/t/replace-sudo-with-doas/17482/18archive.org.

refactor dm-unicode-check[edit]

check live-build_installation function in derivative-maker[edit]

  • todo
  • Spot-checked, looked fine to me. Comment about improper live-build installation due to dependency packages mentioned to Patrick.

build raw VM images - base images - consider porting from grml-debootstrap to live-build[edit]

  • Building fully persistent images? Replacing grml-debootstrap?
--system normal
--binary-image hdd
  • Useful? Low priority? arraybolt3: this would potentially be very useful, will investigate.
  • Looks like this is potentially useful, but definitely needs a lot of help to make useful. To get a useful build, it was necessary to use the following configuration in auto/config:
#!/bin/sh

set -e

lb config noauto \
   --distribution bookworm \
   --system normal \
   --binary-image hdd \
   --hdd-size auto \
   --chroot-filesystem none \
   --binary-filesystem ext4 \
   "${@}"
  • The generated image contained no user account, no root password, and no properly configured fstab, thus it was necessary to mount the built image, chroot into it, configure fstab, add a user, and add the new user to the sudoers group.
  • The generated image also used Syslinux as the default bootloader, which is obviously strange for a desktop system. Furthermore, the kernel command line was not configured properly, and it was necessary to manually add root=/dev/vda1 to the command line to get the system to boot. Probably should have set --bootloaders grub-pc,grub-efi. Unsure if --bootappend-live will work for setting the kernel command line, this may have to be fixed as a post-build operation (chrooting in and running sudo update-grub or similar).
  • Was able to make a basic, mostly-working (aside from the bootloader issues) image with IceWM as the desktop.
  • Patrick, paraphrased Aaron: While it might be doable to create fully persistent (VM) raw images using live-build, porting from grml-debootstrap to live-build is probably not worth it.

refactor dm-packaging-helper-script[edit]

old (ok):

* kicksecure-meta-packages:
  * Add xdg-desktop-portal(-gtk) (Thanks to Aaron Rainbolt!).
  * No longer install `alsa-utils` by default https://forums.whonix.org/t/port-from-pulseaudio-to-pipewire-for-audio-support/16879/45.
  * Add `accountservice` to `kicksecure-desktop-environment-essential-xfce`, which fixes error message:
    * > localhost lightdm[911]: Error getting user list from org.freedesktop.Accounts: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Accounts was not provided by any .service files package `lightdm` `Suggests:` `accountservice`.
  * Allow installation of `pipewire-media-session-pulseaudio` as an alternative to `wireplumber`.
...

new (bug):

* kicksecure-meta-packages:
  * Fix ISO build failure (missing 's' in accountsservice) (Thanks to @ArrayBolt3!)
* kicksecure-meta-packages:
  * Add xdg-desktop-portal(-gtk) (Thanks to @ArrayBolt3!)
* kicksecure-meta-packages:
  * no longer install `alsa-utils` by default https://forums.whonix.org/t/port-from-pulseaudio-to-pipewire-for-audio-support/16879/45
* kicksecure-meta-packages:
  * add `accountservice` to `kicksecure-desktop-environment-essential-xfce` fixes > localhost lightdm[911]: Error getting user list from org.freedesktop.Accounts: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Accounts was not provided by any .service files package `lightdm` `Suggests:` `accountservice`
* kicksecure-meta-packages:
  • Bug fixed, forgot to set package_header_written='y' after writing the package header in pkg_git_packages_git_log_writer.

audit grub profile pf2 files[edit]

live-build - build failing[edit]

archive.today CLI[edit]

  • since archive.org might go offline permanently, a quick replacement is required
  • archive.today alternative domain names: archive.is, archive.ph (for search terms)
  • todo: find a functional archive.today CLI tool
  • todo: fork it, check if the code is static (does not load tons of other libraries) and is non-malicious
  • arraybolt3: archive.today officially does not support automated archival of pages, see https://blog.archive.today/post/678411898279067648/hello-i-am-developing-an-application-thatarchive.org. They use CAPTCHAs to prevent automated tools from working, so it is unlikely such a tool exists, and even if it did, its use would potentially harm archive.today, and the tool would not function properly in the long run.

continuous documentation effort - FYI only[edit]

  • Patrick liked the new super grub disk additions to Broken Boot. If something else comes to mind, please continue improving the wiki.

live build cdlabel change[edit]

  • CDLABEL=Kicksecure_17
  • --iso-volume 'Kicksecure 17' \\
  • better set to just Kicksecure so the version number upgrade isn't needed and not forgotten in the future?
  • set to Kicksecure already by Patrick
  • arraybolt3: Fine with me, archiving.

local editor settings - delete trailing spaces[edit]

  • please kindly configure your local editor to deleted trailing spaces upon saving files
  • Done.

live-build - investigate options[edit]

  • because it contains options and todo
  • (originally from build-steps.d/1350_create-iso-config)
  • not all comments might be needed. some of my comments might be superfluous / obvious.

old:

   ## folder derivative-maker/live-build can be re-created using:
   ## 2. help-steps/live-config
   
   ## Should not be done at live-build level if avoidable? Better done in package live-config-dist as /etc/default/grub.d drop-in
   #--bootappend-live PARAMETER|"PARAMETERS"
   # arraybolt3: Cannot be done via a package as the bootloader config for the ISO is set directly by live-build. Instead, source grub.d scripts from security-misc at build time and use variables from there to set the bootappend value.
   # Patrick: Not only security-misc is setting grub configuration. Also other packages do or might in the future. Therefore all of /packages/ folder needs parsing.
   # arraybolt3: We now use grub-mkconfig and config file parsing to automatically detect the proper GRUB kernel parameters.

   ## TODO: cleaner to not have these? better for reproducible builds?
   #--apt-indices false
   # arraybolt3: Added.

## Kicksecure enabled backports by default so live-build does not need to
## (kicksecure ships /etc/apt/sources.list.d/debian.list static file in package anon-apt-sources-list)
   #--backports true|false
   # arraybolt3: Left unset, seems to work.


## Probably not needed.
   #--checksums md5|sha1|sha224|sha256|sha384|sha512|none
   # arraybolt3: left unset
   #--debian-installer cdrom|netinst|netboot|businesscard|live|none
   # arraybolt3: This MUST be set to "--debian-installer=live" (different values other than "none" may also work?). Not doing so results in the on-CD apt repo that contains bootloader packages not being created, and alternate ways of making that repo ended up erroring out in my experiments.

   ## Kicksecure enables fasttrack repository by default. If build works, probably not needed.
   #--keyring-packages PACKAGE|"PACKAGES"
   # arraybolt3: left unset, but perhaps it should be set to include the fasttrack repository key. Currently I'm using "--debootstrap-options" to include it.

   #--cache-stages "bootstrap rootfs"
   # arraybolt3: left unset. This automatically "just works".

## For cross-build support.
   # --architecture "$dist_build_target_arch"
   # arraybolt3: Note that for cross builds to work, this must be paired with "--bootstrap-qemu-arch" if building for a foreign architecture like arm64. Needs testing.

   # --distribution "$dist_build_apt_stable_release"
   # arraybolt3: set.

## TODO: should we keep as is (Debian default) for better compatibility or set to
##       $SHORT_VMNAME / $VMNAME (already defined in help-steps/variables) to avoid conflicts with Debian (dual-boot)?
   # --hdd-label LABEL
   # --image-name NAME
   # --iso-application NAME
   # --iso-publisher NAME
   # --iso-volume NAME
   # arraybolt3: all are now set

## Not applicable?
   # --hdd-size SIZE
   # arraybolt3: for ISO build, not applicable

## TODO: source not needed
   # --source
   # arraybolt3: left unset, defaults to false.

## yes. not bothering/mixing any other bootloaders such as isolinux (except shim, which live-build handles automatically)
   # --bootloaders grub-efi
   # arraybolt3: left unset, live-build figures this out automatically and generates an ISO that is both BIOS-bootable and UEFI-bootable with GRUB by default.

## already existing variable
  # --linux-packages "$BUILD_KERNEL_PKGS"
  # arraybolt3: set.

## already existing variable
## usability feature
## we want kernel headers installed by default (required for tirdad compilation (has a dependency); virtualbox guest utils (lacks dependency))
## probably
   # --linux-packages "$BUILD_HEADER_PKGS"
   # arraybolt3: set.

## We can probably set this because we cache using <code>${REPO_PROXY}</code>? Double caching not useful?
## This option might have side effects.
   # --cache-packages false
   # arraybolt3: set `--cache false`.

   ## TODO: Does this work? Is our apt-cache-ng (already existing variable ${REPO_PROXY}) functional?
   # --apt-ftp-proxy "${REPO_PROXY}"
   # --apt-http-proxy "${REPO_PROXY}"
   # arraybolt3: set, but unsure if it actually works yet

## important. using apt with --no-install-recommends
## but not setting and apt config file for the user
      # --apt-recommends false \
      # arraybolt3: already set.

## if using debootstrap
## important because we pull packages using packaging not using $debootstrap or live-build
      # --debootstrap-options "--variant=minbase" \
      # arraybolt3: set.

## if using mmdebstrap
## '--variant=required' is only supported by 'mmdebstrap'. It might not be supported by 'debootstrap'.
      # --debootstrap-options "--variant=required" \
      # arraybolt3: "required" and "minbase" appear to be treated identically by mmdebstrap, therefore not setting this.

## same as above
   # --firmware-binary false
   # --firmware-chroot false
   # arraybolt3: already set.

## Seems correct.
      # --binary-image iso-hybrid \
      # arraybolt3: set.


   lb config \
      --distribution "$dist_build_apt_stable_release" \
      --mirror-binary "$dist_build_apt_sources_mirror" \
      --mirror-binary-security "$dist_build_apt_sources_security_mirror" \
      --mirror-bootstrap "$dist_build_apt_sources_mirror" \
      --mirror-chroot "$dist_build_apt_sources_mirror" \
      --mirror-chroot-security "$dist_build_apt_sources_security_mirror" \
      --mirror-debian-installer "$dist_build_apt_sources_mirror" \
      --parent-mirror-binary "$dist_build_apt_sources_mirror" \
      --parent-mirror-binary-security "$dist_build_apt_sources_security_mirror" \
      --parent-mirror-bootstrap "$dist_build_apt_sources_mirror" \
      --parent-mirror-chroot "$dist_build_apt_sources_mirror" \
      --parent-mirror-chroot-security "$dist_build_apt_sources_security_mirror" \
      --parent-mirror-debian-installer "$dist_build_apt_sources_mirror" \
      --archive-areas "main contrib non-free non-free-firmware" \
      # arraybolt3: set.


## use $dist_build_apt_stable_release instead of hardcoded "bookworm"
    --distribution "bookworm"
    # arraybolt3: no longer hardcoded.

## probably needed? same as Kicksecue default APT sources archive areas
## should we get this by parsing? in buildconfig.d/25_apt_sources.conf
    --archive-areas "main contrib non-free non-free-firmware" \
    # arraybolt3: set. Getting from 25_apt_sources.conf is not ideal because it does not have a simple variable that can be used for this purpose. 

## sources not needed
    --apt-source-archives false \
    # arraybolt3: set.
    --source false \
    # arraybolt3: defaults to false, does not need set.

## zsync not used
    --zsync false \
    # arraybolt3: set.

## useful? irrelevant?
    # --chroot-filesystem ext4 \
    # --binary-filesystem ext4 \
    # arraybolt3: both seem irrelevant.

## useful to see what is going on. why not.
    # --verbose \
    # --debug
    # arraybolt3: set.

## sanity testing and nice to compare logs
lb config --dump
lb config --validate
# arraybolt3: integrated.

## better verbose than not knowing what is going on
lb build --verbose --debug
# arraybolt3: integrated.
  • Reviewed and integrated.

ISO - port to live-build[edit]

Whonix grub-theme[edit]

Kicksecure grub-theme[edit]

  • maybe https://github.com/AdisonCavani/distro-grub-themesarchive.org can be helpful?
  • add to https://github.com/Kicksecure/kicksecure-base-filesarchive.org
  • With the way Debian is designed, the proper way to do this (as far as I can tell) is to pull in the desktop-base package, then use the alternatives system to override the Debian artwork with vendor-specific artwork. However there is a LOT more artwork than just GRUB themes that has to be overridden here. Currently working on this, I think the best package to do this in would be desktop-config-dist although I'm not certain.
  • Possible issues with current implementation:
    • Potential aspect ratio weirdness, we may or may not care. Debian uses 4x3 aspect ratio for BIOS and 16x9 aspect ratio for UEFI, I've followed that convention here.
  • investigate if dh_link can used to create symlinks
    • arraybolt3: dh_link is part of debhelper, which is a tool intended for use only at package build time. It is not intended to be used at maintainer script run time to my awareness, and using it in this context would require pulling in debhelper as a dependency, which would be weird because debhelper is a developer tool, not an end-user tool. Thus I don't think we should do this. ln works fine here and makes sure that the proper GRUB screen sizes are used.
  • Implemented at: https://github.com/ArrayBolt3/kicksecure-base-files/tree/arraybolt3/grub-themearchive.org

dummy-dependency improvements[edit]

upgrade-nonroot comment[edit]

zswap commment[edit]

minimize grub themes[edit]

  • please remove all files that are only required for pretty multiboot (without breaking actual multiboot)
  • Done, same repositories and branches are still in use.

document grub.cfg extraction methods or chainloading[edit]

  • Worthy of note, the Linux boot entries are only populated if the disk is unencrypted. Encrypted systems require the use of one of the grub.cfg extraction entries, or (in the case of BIOS systems) chainloading. Additionally, it would be recommended to always use the grub.cfg extraction methods or chainloading, as the use of a "normal" Linux boot entry works but does not enable any kernel hardening features.
  • please add to wiki (grub?)
  • Documented under Broken Boot, along with detailed instructions on installing and using Super Grub2 Disk.

dummy-dependency package generator[edit]

review and refactor meta packages[edit]

Update 1:

  • please proceed with the "small" tasks that can be done safely during Debian bookworm based releases
  • create a ticket for Debian trixie port

kloak readme fix[edit]

live-build - source code integration into derivative maker[edit]

  • assume at in derivative-maker/live-build
  • Done by Patrick.

live-build - use live-build to create grub.cfg GRUB configuration[edit]

  • Possible?
  • Not possible due to live-build's design, we apply a lot of customisations here that probably should not be upstreamed.

live-build - remove unicode[edit]

  • please remove unicode if possible from live-build/share/bootloaders/splash.svg
  • Fixed, pushed to my fork of live-build. Looks like there were two non-breaking spaces causing issues. This probably cannot be upstreamed as one assumes these were made non-breaking for a reason, and while we may not care about that reason, they probably do.

review Super Grub2 Disk[edit]

  • see https://github.com/supergrub/supergrub/tree/master/menus/sgdarchive.org
  • any cool/needed features there which would be useful to add to the ISO or non-ISO boot process?
  • Don't see much extra that is needed there if it works reliably. The tool appears very capable, I was able to use it to boot an installed Kicksecure system in several different ways. Also was able to loopback boot ISOs. If a user runs into a problem trying to use it for boot recovery, then we should add a task to fix the issue to this list.

confidential computing[edit]

  • Please read tickets from private issue tracker and update Dev/confidential computing with new contents based on that.
  • Read, added notes on tamper protection and generation of one's own Secure Boot keys.

append-once bug[edit]

livecheck:

      append-once "${save_file}" "<click>${click}</click>"
      append-once "${save_file}" "<txtclick>${click}</txtclick>"

Does not work. Only the first "click" gets appended. "txtclick" is missing. This is a bug in append-once.

(Patrick applied a workaround in livecheck for now.)

Please fix append-once, if possible.

live-build - fork of live-build[edit]

live-build - use derivative-maker variable APT_OPTIONS[edit]

  • for reference, see derivative-maker help-steps/variables APTGETOPT, APTGETOPT_ALT, APTGETOPT_WITHOUT_APT_CACHE
  • set live-build APT_OPTIONS to APTGETOPT
  • these include --error-on=any and more
  • Added.

live-build - avoid live-build specific boot splash[edit]

  • https://github.com/ArrayBolt3/derivative-maker/blob/arraybolt3/live-build/live-build-data/splash.svgarchive.org
  • Avoidable? Can be done in /packages/ instead please?
    • Difficult to avoid, the splash screen is dynamically modified by live-build at build time, and is sourced from live-build's configuration directory at build time (live-build does not use packages installed under the chroot to find this). The entirety of the bootloader configuration is done without use of packages installed in the built system as I understand it.
  • there are later tasks for GRUB boot menu styling
    • This has to be dealt with now because otherwise we risk causing confusion to end-users. The default GRUB splash on live-build ISOs uses a strange construction hat logo, and states that the ISO is specifically Debian. Not changing this screen could even be legally problematic as the name "Debian" is a trademark. (https://www.debian.org/trademarkarchive.org) This GRUB screen is also specific to live-build and should not be used for installed systems. Debian uses separate GRUB screens for installed systems and live-build ISOs.
  • live-config-dist uses to add "Live ISO" to grub boot menu in https://github.com/Kicksecure/live-config-dist/blob/master/etc/default/grub.d/40_live-config-dist.cfgarchive.org - possible to do the same with live-build?
    • This file should probably be deleted once live-build becomes the default ISO build mechanism.
  • Figure out what unicode is in the splash screen SVG and remove it if at all possible
    • Fixed, it was a non-breaking space.

report TCP ISN specification issue[edit]

  • TCP ISN is an issue in the spec
  • Could you please report this upstream in to the spec, if possible?
  • Reported.

live-check - run once only[edit]

review kloak RPM specfile[edit]

  • https://github.com/Whonix/kloak/pull/2archive.org
  • please review for non-maliciousness only
  • Reviewed, all contents appear normal, useful, and non-malicious. However, the systemd unit for kloak is not enabled by default due to the lack of a systemd preset file. This may be something we want to resolve later.

desktop-config-dist - livecheck - rd.live.image[edit]

  • FYI: this is now fixed in git. no more patch for live-build required. livecheck should now work out of the box (no matter if old or new live-build kernel parameters)
  • FYI only. Ticket can be archived.
  • arraybolt3: I haven't archived this yet since it doesn't seem to actually be working in my ISO builds and I'm not sure why.
  • Patrick: Fixed yet again.
  • arraybolt3: Looks good now.

automate VirtualBox version update in the wiki[edit]

calamares - change to BTRFS by default - including subvolumes[edit]

live-build - path may be being set in a non-ideal fashion[edit]

  • $source_code_folder_dist/live-build for the git sub module (our fork) (pristine source code)
  • $dist_binary_build_folder/live-build should be used for the "config" folder (which will contain binaries after running live-build) (can be safely deleted and re-created using derivative-maker)
    • arraybolt3: currently using $dist_binary_build_folder/kicksecure-live-build for this, change to use live-build name instead
    • Done.

live-build - boot-time scripts handling[edit]

  • boot-time scripts aren't marked as executable
  • the boot-time scripts are an implementation detail of the live-build config (used to set the default shell to ZSH and change the username from "Debian live user" to "Kicksecure live user")
  • should be done by to /packages/
    • arraybolt3: This cannot be done by /packages/ because these scripts are installed by live-build and are not vendored as a package. This is the recommended way of doing things in live-build, see https://live-team.pages.debian.net/live-manual/html/live-manual/customizing-contents.en.html#customizing-contentsarchive.org section "9.2.3 Boot-time hooks"
    • Patrick:
      • Where is the source code for these scripts?
        • arraybolt3: Integrated in derivative-maker/build-steps.d/2800_create-lb-iso.
      • Can we avoid using some of these scripts? Is this a missing live-build feature? If it is what I vaguely remember before, these could be disabled with a symlink to /dev/null inside the configuration folder.
        • arraybolt3: The scripts are custom-written for the ISO, and have two purposes - one of them renames "Debian live user" to "Kicksecure live user", the other one changes the default shell in the ISO live environment from bash to zsh.
      • Switching default shell from bash to zsh is already implemented in dist-base-files debian/dist-base-files.postinst. It also supports configuration, simplifies customized builds / forks. Doing this in dist-base-files as well as on the live-build level, adds extra complexity, which should be avoided.
        • arraybolt3: Doing this in a package requires shipping files under /lib/live/config. This is because the live session user on the ISO is actually created at ISO boot time, not at build time. As a result the user's default shell and most of the user configuration is controlled by live-build boot-time hooks, which are located in /lib/live/config. Technically this is doable, but it diverges from the documented method described in live-build's manual.
  • All extra boot-time scripts have been made obsolete and are thus removed.

live-build - avoid scripting at calamares level - avoid /etc/calamares/modules/shellprocess_useradd.conf[edit]

  • Can this be done at /packages/ level instead please?
    • Very difficult. live-build ISOs generate the user account on the ISO at boot time, meaning that after an initial Calamares installation, the installed system has no usable user account. Creating one requires either using the Calamares users module (which as previously discussed is undesirable) or requires a hook similar to what is implemented with shellprocess_useradd.conf.
  • Already implemented in dist-base-files debian/dist-base-files.postinst
    • This should not be implemented here. This method of implementation is fundamentally incompatible with live-build, and the only reason it hasn't caused issues is because the logic disables itself when not running under Qubes or derivative-maker, and when live-build is running it obscures the use of derivative-maker from the package.
  • Better to keep it there due to planned changes. (User "user" will no longer be a member of group "sudo" and a new user "admin" will be introduced.) Otherwise having two places to maintain this would complicate things.
    • Can it be moved to live-config-dist and maintained there going forward?
  • shellprocess_useradd.conf removed, user creation managed by dist-base-files as before.

livecheck - FYI - rd.live.image kernel parameter detection broken[edit]

  • fixed in git
  • FYI only
  • please archive this ticket

live-build - upstream pull requests[edit]

  • Please check, continue working with upstream.
  • Updated fork to reflect new changes to master, commented on the localrepo merge request.
  • All three live-build patches are listed in "WAITING ON", indicating that work on them is ongoing. I will make sure to monitor activity there regularly and respond quickly.
  • Patrick: This was about:
Merge blocked: 1 check failed
Merge request must be rebased, because a fast-forward merge is not possible.

pam_faillock ticket[edit]

`/etc/pam.d/sudo`

```
#%PAM-1.0

# Set up user limits from /etc/security/limits.conf.
session    required   pam_limits.so

@include common-auth
@include common-account
@include common-session-noninteractive
```

`/etc/pam.d/sudo-i`

```
#%PAM-1.0

# Set up user limits from /etc/security/limits.conf.
session    required   pam_limits.so

@include common-auth
@include common-account
@include common-session
```

----

`/etc/sudoers.d/upgrade-passwordless`

```
%sudo ALL=NOPASSWD: /usr/bin/apt-get-update-plus dist-upgrade
```
  • May be useful, but I don't believe it is necessarily useful right now. Would like to wait for now.
    • Patrick: Agreed because this bug seems to be a sudo bug instead and was reported against sudo.
  • Ticket can be archived.

fix broken recovery mode[edit]

  • Recent Kicksecure ISOs seem to simply hang during boot when booted in recovery mode. Investigate.
  • Turns out the default kernel in the latest ISO has a broken recovery mode. However, the next kernel update thereafter works without issues. This will therefore resolve itself during regular updates, and the next ISO build should have it fixed.

live-build - keep generated live-build folder out of source code folder[edit]

  • treat "lb config" as pristine/source code
  • place live-build folder in ~/derivative_binary folder (use already existing variable binary_build_folder_dist)
  • reason: live-build mixes config and binaries inside the same folder

This is how it was done in the past:

   mkdir --parents "$binary_build_folder_live_build"
   cd "$binary_build_folder_live_build"
  • live-build config is autogenerated at build time now.

review root related documentation[edit]

faillock[edit]

security-misc - review pam-configs[edit]

security-misc - faillock - stop reset after reboot[edit]

security-misc - faillock - stop reset after 24 hours[edit]

  • should not be reset after 24 hours
  • no need to automatically reset at all
  • user should always have a chance to learn about failed login attempts
  • this can (likely?) be configured in our already existing configuration file in security-misc
  • Lockout reset is preventable, tally reset cannot be configured out and the largest possible delay between resets that can be set is arbitrarily limited to 7 days.
  • Fixed as much as possible in commit https://github.com/ArrayBolt3/security-misc/commit/690e8dd826d1cb39c0c12c03792781862cc2dd23archive.org

security review[edit]

  • as discussed
  • done, notes shared in chat

live-build - stop installation extraneous packages[edit]

  • dhcp / networking related packages
  • whiptail
  • should not be pulled by live-build
  • if deemed useful packages, needs to be discussed in forums and and done inside the derivative-maker /packages/ folder through Depends:
  • Looks like this is solved, cannot find isc-related packages, ifupdown, or whiptail in my latest build.

live-build - dracut related fixes[edit]

kloak - add support for /dev/input/mice[edit]

  • VM has no /dev/input/mouseX
  • VM has only /dev/input/mice
  • kloak ignores /dev/input/mice.
  • (user reported using a Ubuntu 24.4 VM)
  • kloak only uses /dev/input/eventX devices by design, these are provided by the evdev driver and seem like they should always exist
  • Could not reproduce issue with QEMU using either Kicksecure or Lubuntu 24.04 - /dev/input/eventX devices for mouse always exist, as do individual /dev/input/mouse devices. Need to know what hypervisor was in use to test further

Patrick:

  • asked user about which VM. waiting for reply.
    • probably user error. archiving.

ISO - check git history[edit]

  • check derivative-maker source code git history as it might have useful options
  • Found and extracted lb config command. Commit used was from 2023-07-20, and is the latest live-build commit on that day.

desktop-config-dist package version issue[edit]

  • kicksecure /dists/bookworm-developers/main/binary-amd64/Packages
Package: desktop-config-dist
Version: 3:10.1-1
desktop-config-dist(master)]% git describe              
10.1-1
  • todo: investigate
    • How did an outdated desktop-config-dist version (older than in git) end up in the test ISO? Did it install packages from local repository? Then this issue should be impossible to happen. Or did it test wise use the remote, stable repository? Then this is not surprising. The stable repository often has older versions. These are for the most part only updated once a new stable release has been released.
  • note: updated due to below now
  • The version of the desktop-config-dist package installed on the ISO had contents older than in Git, but the version number was *newer*. This leads me to believe that most likely the machine used to build the ISO had testing code left in derivative-maker/packages/kicksecure/desktop-config-dist or similar.

research chvt security impact[edit]

tirdad - fix[edit]

Security Through Amnesia: A Software-Based Solution to the Cold Boot Attack on Disk Encryption[edit]

wiki improvements related to Open Source hardware and firmware[edit]

e-mail processing[edit]

  • read e-mail on confidential computing, digest, add to wiki (cannot be copied/pasted)
  • Added notes to confidential computing page.

keepassxc org.freedesktop.secrets Linux distribution compatibly feature request[edit]

research enclaive[edit]

research constellation[edit]

research Intel TDX[edit]

ISO - wrong bootloader entry[edit]

ISO - fallback boot loader broken[edit]

  • Similar to above.
  • Ultimately this is not something we can fix until the migration to live-build is done.
    • Debian Live doesn't install with a fallback bootloader enabled *at all* by default, only the Debian-specific path has a bootloader installed to it.
    • Ubuntu installs a special "fix the UEFI NVRAM vars" bootloader under \EFI\BOOT\BOOTX64.EFI but that's Ubuntu-specific it appears.
    • There is an option in Debian that allows always installing the GRUB bootloader to the fallback bootloader path in addition to the normal installation location (https://wiki.debian.org/UEFI#Force_grub-efi_installation_to_the_removable_media_patharchive.org). This option would work great for us, however it requires that grub-efi-amd64 be installed, which requires grub-pc to be uninstalled, which looks like it will probably cause issues on non-UEFI systems.
    • At this point we have to choose to have either slightly broken UEFI, or slightly broken BIOS, there is no middle ground until the live-build migration is complete. However, we may be able to tell Calamares to not install a fallback bootloader of its own anymore since this bootloader doesn't work at all.

ISO - calamares - logo size reduction[edit]

ISO - calamares - encrypt button bug[edit]

ISO - live-config - dist shellprocess_fixconkeys_part[edit]

  • Why is this required? Please report, fix this issue upstream in calamares, if possible. Otherwise, please add a comment to the file in live-config-dist so these files can be removed some day.
  • Reported upstream at https://github.com/calamares/calamares/issues/2383archive.org

research Secure Cloud Hardware[edit]

research AMD Infinity Guard[edit]

tirdad[edit]

tirdad - read history and old discussions[edit]

tirdad - functionality review[edit]

tirdad - backports compatibility[edit]

tirdad - fix code issues[edit]

tirdad - upstream to Linux[edit]

  • please discuss upstream
  • see if it is possible to send a pull request upstream

tirdad - compile time hardening flags review[edit]

  • Any compile time hardening flags that could be set?
  • Setting compile-time flags could be dangerous. Would recommend just sticking with the defaults in the kernel.

tirdad - lwn article review[edit]

  • https://lwn.net/Articles/455270/archive.org
  • something important to know there?
  • Using random 32-bit numbers from the kernel's RNG will avoid any potential security issues like the ones described here.

tirdad - development branch[edit]

  • Please create a development branch that comes with all your PRs merged.
  • This has been completed by Aaron in the rewrite branch.

boot issues debugging[edit]

research AMD TSME[edit]

investigate locale issue[edit]

tirdad[edit]

security review tirdad.c[edit]

hardware security features for RamCrypt[edit]

  • If software-only isn't possible, maybe hardware features such as SGX need to be used.
    • SGX itself does not appear to be useful for us. It allows running security-sensitive code in a secure "box" that nothing else on the system can pry into, but that security-sensitive code is limited in capabilities. It does not appear to be possible to run an entire virtual machine in an SGX enclave.
    • Intel TXT and TME-MK are much better suited for our purposes.
  • todo research: Are there still unpatched security issues in SGX or similar features that could be used for that?
    • It appears known issues are patched in the latest processors. Microcode updates were used to fix some of the issues.

report GTK touchscreen detection bug[edit]

investigate kloak bugs[edit]

research Intel / AMD RAM Encryption[edit]

pKVM research[edit]

  • research if pKVM assumes a locked down host and/or remote attestation (Google SafetyNet)
  • Researched and added to Whonix Dev/cloud page

dracut follow-up[edit]

calamares luks encryption settings ticket[edit]

secure cloud research[edit]

  • move notes from chat to wiki
  • Revamped Confidential VMs section in wiki

RamCrypt + no-fill cache mode[edit]

  • Draft an email for the kernel development mailing list asking about the possibility of 100% RAM encryption, mounting CPU cache as RAM for the 3%.
Subject: Investigating practicality of full memory encryption techniques using frozen cache and TRESOR/RamCrypt

I am currently helping with software development for the Kicksecure and Whonix projects, which are heavily focused on privacy and security. One of the goals we'd like to achieve is making it possible to securely run virtual machines on x86_64-architecture cloud servers in a manner resistant to cold-boot attacks, without relying on technology such as Intel SGX and TDX or AMD SEV that requires trusting CPU-vendor-provided code, keys, etc.

The two main technologies we're looking into for this purpose are TRESOR[1] and RamCrypt[2]. TRESOR is a full disk encryption mechanism that stores all disk encryption keys in CPU registers, such that the key is never[3] stored in RAM. If used on the hardware of a VM host, this would prevent a cold-boot attack from finding the disk encryption key. RamCrypt is a full memory encryption mechanism that uses the same technique as TRESOR to hide an encryption key inside the CPU, using it to transparently encrypt and decrypt the memory of running applications using memory paging techniques. Both of them have working proof-of-concept implementations described in the linked papers. Our hope is to eventually get fully functional, production-ready TRESOR and RamCrypt implementations created and upstreamed into the Linux kernel. For the avoidance of doubt, I am not the author of or a contributor to either TRESOR or RamCrypt.

One issue we have with RamCrypt is that it leaves part of a protected process's memory unencrypted in RAM as necessary. By default, up to four 4k pages of RAM are unencrypted at a time, with new pages being decrypted and older ones being encrypted transparently as needed. This has the serious disadvantage of making a cold-boot attack potentially successful, even if it is statistically unlikely to work. The chances of a successful attack against RamCrypt are non-negligible - the RamCrypt paper shows that a RamCrypt-protected nginx instance left a critical encryption key exposed in RAM 3% of the time in their test scenarios. This is worrying to us, and we're wondering if there is a way to prevent this from being a problem.

Our current hope is to use a cache-as-RAM technique (similar to what is described in the Frozen Cache[4] project) to potentially overcome this limitation. The idea, roughly speaking, is to ensure that protected process memory is only ever present in decrypted form in one of the CPU caches, and is prohibited from ever touching system RAM. When a page of memory is accessed that is encrypted, a previously decrypted page will be encrypted, written to system RAM, then an encrypted page will be decrypted into cache and used. Cache should be approximately as hard to access in a cold-boot attack as registers, thus this would allow a protected process to be immune to cold-boot attacks by never storing any sensitive data decrypted in RAM. It appears that no-fill cache mode could potentially be used for this purpose, though doing so without entirely destroying system performance seems like it would be tricky and probably require dedicating one or more CPU cores to running "protected" software with this modified caching mode.

The high-level end goal is to allow KVM-accelerated QEMU processes to be run encrypted via RamCrypt, with no unencrypted VM memory touching system RAM, and with the physical machine running TRESOR to protect the filesystem on which the VM virtual disks are stored. To begin with, though, it would be useful to know whether it's even possible with Linux's architecture to combine RamCrypt and no-fill cache mode to transparently encrypt a process's memory without exposing it decrypted in RAM. Some advice on how to go about implementing something along these lines would also be welcome, so that we can implement it in a way that is most likely to be accepted into the upstream kernel.

Thanks for taking the time to read this, and have a great day!

[1] https://faui1-files.cs.fau.de/filepool/projects/tresor/tresor.pdf
[2] https://faui1-files.cs.fau.de/filepool/projects/ramcrypt/ramcrypt.pdf
[3] Well, almost never - the key is briefly stored in RAM when read from whatever device provides it, but it is immediately expunged from RAM thereafter.
[4] https://frozencache.blogspot.com/

ISO - Fix encryption checkbox bugs[edit]

ISO - calamares encryption settings[edit]

sudo cryptsetup --verbose --use-random --cipher aes-xts-plain64 --key-size 512 --hash sha512 --use-random luksFormat <device>

  • distribution developers should control most if not all of that line
  • "sudo" - is probably a given since cameras runs as root.
  • "cryptsetup" - maybe a distribution wants to use a wrapper.
  • "--verbose --use-random --cipher aes-xts-plain64 --key-size 512 --hash sha512 --use-random" these are certainly options which a distribution should be able to decide.
  • "luksFormat" -
  • "<device>" - probably provided by calamares through a variable

Based on theoretic considerations only. Since calamares uses a library to use cryptsetup (?) it may not be as simple for a distribution to set these command-line options?

Patrick:

Aaron:

org.freedesktop.secrets implementation[edit]

Cloud virtualization - research RAM-less encryption techniques for disk and RAM encryption[edit]

See https://www.whonix.org/wiki/Dev/cloud#Confidential_VMsarchive.org

live-build dracut test[edit]

ISO - error message during boot: mount: /sysroot: special device LiveOS_rootfs does not exist[edit]

unbootable system after installing dracut on a standard Debian installation[edit]

grub-live with 90overlayfs[edit]

## dracut support
## https://www.kicksecure.com/wiki/Grub-live#Developer_Information
##
## using Debian forked upstream module 90overlay-root (tested)
GRUB_CMDLINE_LINUX="$GRUB_CMDLINE_LINUX rootovl"

Comment out.

## using dracut upstream module 90overlayfs (untested)
#GRUB_CMDLINE_LINUX="$GRUB_CMDLINE_LINUX rd.live.overlay.overlayfs=1 rd.live.overlay.readonly=1"

Comment in. Test. Fix if required. Report issues upstream to dracut.

If there are bookworm related issues, please test on trixie.

No backport required. The rationale of this task if to get away from Debian (fork) specific 90overlay-root to 90overlayfs one day. trixie is early enough since there are no major issues in the current implementation but might be in trixie if we don't port.

This works on Trixie - generate an initrd with the overlayfs module added, then boot with rd.live.overlay.overlayfs=1 on the kernel command line. The rd.live.overlay.readonly=1 parameter is unnecessary and should be removed - it's for systems where you have an immutable base filesystem and a persistent overlay, and you want to make the overlay read-only, putting another overlay on top of it.

This does not work on Bookworm - the overlayfs module script is simply not run despite being present. It's possible to drop to a rescue shell using rd.break=mount on the kernel command line, then run the script manually - this works, but is obviously not practical.

comment: Boot Existing, Usual Linux Installation from Hard Disk in Live Mode / read-only mode with dracut #1565archive.org

dracut - test dracut without systemd[edit]

kloak - memory leaks[edit]

  • chatgpt suggests...
    • struct entry in main loop might not be freed
    • n1 = malloc(sizeof(struct entry));
    • please check for other variables (specifically in main loop) which might not be freed
  • Double-checked just in case, this had been previously checked in my own ChatGPT code review and doesn't appear to be a problem. Entry items are created and stored temporarily in *n1, then queued. Those items are later assigned to the np variable and then freed in the event release loop (free(np)). The only edge case where I can see this going wrong is if kloak gets stuck and stops delivering events, which would also freeze the keyboard and make the user very likely to immediately termiante kloak.
  • The other variable which ChatGPT warned me of is pfds, which is very clearly freed when the loop exits, needed throughout the loop's entire lifetime, and which will be automatically freed if the loop is terminated since terminating the loop terminates the whole program.

kloak - Qubes support - read and comment in Qubes kloak in dom0 ticket[edit]

ISO - must choose encrypt vs not encrypt. Empty default setting[edit]

kloak - update readme[edit]

kloak - fix debug symbols[edit]

W: kloak-dbgsym: debug-file-with-no-debug-symbols [usr/lib/debug/.build-id/3a/ae8c705abefbd590d2206221eea4c2abd90cf4.debug][edit]

N: 
N:   The binary is installed as a detached "debug symbols" ELF file, but it
N:   does not appear to have debug information associated with it.
N:   
N:   A common cause is not passing -g to GCC when compiling.
N:   
N:   Implementation detail: Lintian checks for the ".debug_line" and the
N:   ".debug_str" sections. If either of these are present, the binary is
N:   assumed to contain debug information.
N: 
N:   Please refer to Bug#668437 for details.
N: 
N:   Visibility: warning
N:   Show-Always: no
N:   Check: binaries/debug-symbols/detached
N: 
N:

read Dev bash wiki page[edit]

  • https://www.kicksecure.com/wiki/Dev/basharchive.org
  • might be already known, just in case
  • checked it, bookmarked it, some of the issues mentioned there were things I hadn't thought of before (like echo '-e' failing or security risks from failing to use -- to signal end of options)

haveged test suite passes even if only 1s are produced?[edit]

oomd[edit]

ISO - Install to system desktop icon: maximize window[edit]

gpg sign all your future git commits[edit]

add gpg key to your github[edit]

Add python3 dependency to mediawiki-shell package[edit]

  • Lintian error during build of Kicksecure ISO from derivative-maker commit 8fa4ba76: "E: mediawiki-shell: python3-script-but-no-python3-dep /usr/bin/python3 (does not satisfy python3:any | python3-minimal:any) [usr/bin/mw-urlencode]"

seccomp debugging documentation[edit]

copy notes on seecmop debugging from https://github.com/Whonix/kloak/pull/1archive.org to https://www.kicksecure.com/wiki/Seccomparchive.org

(so in the future when this is happening, we can link to the documentation so users get an idea how to debug and fix this)

just briefly similar to the pull request

autostart systemd user unit xdg-desktop-portal[edit]

kloak - add configuration option to disable rescue key[edit]

  • user reported that some hotkeys aren't functional due to kloak rescue key.
  • suggested solution, feature request: allow rescue key to be disabled thorough configuration
  • a command line option + systemd unit drop-in configuration file?
  • example systemd unit drop-in configuration: https://github.com/vmonaco/kloak/issues/75#issuecomment-2196543109archive.org

kloak - testing[edit]

kloak - document rescue key[edit]

kloak - makefile fix[edit]

  • Makefile should check if pkg-config exist because otherwise it fails with libevdev error?

kloak - verbose log sharing[edit]

Documentation is currently stating:

Warning: Privacy implications of log sharing are unknown!

Might verbose log reveal the typing fingerprint of the user?

kloak - mouse click obfuscation[edit]

kloak - xrdp support[edit]

kloak development[edit]

backlog - one day[edit]

Qubes graphical-session.target missing bug[edit]

add date and time detection to archive.today frontend[edit]

  • This is necessary for the next task.
  • If a link has been archived once in the past, but is severely outdated, we should probably request that archive.today rearchive it. This requires that we know when archive.today archived each page.
  • (It might be worthwhile to detect when a link was added to the Wiki and use that as a deciding factor as to whether or not we should archive the link again. Might be doable by using the archive.today backups from Github.)
  • We decided to not attempt re-archiving already archived content, thus this is no longer needed for now.

mediawiki bot setup[edit]

rootless X11[edit]

  • only if doable with low effort such as just changing some configs (such as in lightdm config) or changing some installed packages
  • Would require switching away from LightDM or enabling rootless X11 support in LightDM, thus moving to backlog.

power9 RAM encryption research[edit]

  • todo

auto-detect, prompt for potential root devices in case the root= device is misconfigured or missing[edit]

dracut add support for undeclared CDLABEL[edit]

as discussed

live-build - Retry button in derivative-maker doesn't work[edit]

  • low priority, move to backlog please

Footnotes[edit]

We believe security software like Kicksecure needs to remain Open Source and independent. Would you help sustain and grow the project? Learn more about our 12 year success story and maybe DONATE!