mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #6148] hashcat: cannot recognise any hashes (even its own generated with -m xxx --example-hashes) when run against a hash file #3202
Labels
No labels
LTS merge
LTS merge
bug
bug
converted-to-discussion
doc-todo
documentation
duplicate
enhancement
file-transfer
firecfg
firejail-in-firejail
firetools
graphics
help wanted
information_old
installation
invalid
modif
moved
needinfo
networking
notabug
notourbug
old-version
overlayfs
packaging
profile-request
pull-request
question
question_old
removal
runtime-permissions
sandbox-ipc
security
stale
wiki
wiki
wontfix
wordpress
workaround
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/firejail#3202
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ipaqmaster on GitHub (Jan 2, 2024).
Original GitHub issue: https://github.com/netblue30/firejail/issues/6148
Description
Describe the bug
Late December I enabled firejail system-wide with
sudo firecfgand have since had tormmany of its/usr/local/bin/symlinks to get programs to work. Today I experienced Hashcat not recognizing hash files and being entirely unusable as a result. It was even unable to recognize example hashes it had generated itself which is how I realized this isn't just a bad library or partially updated package situation but rather firejail having a profile for it. After removing/usr/local/bin/hashcatit resumed functioning as expected.In this case the intended hash is sitting in a /tmp tmpfs as /tmp/file.txt
Steps to Reproduce
Steps to reproduce the behavior
No hash-mode matches the structure of the input hash.despite definite support for the hashes contained within the file.Expected behavior
What you expected to happen
Hashcat to prepare the graphics card for enumerating the hash as is normal operation and then beginning that task.
Actual behavior
What actually happened
Hashcat cannot identify hashes. More realistically it likely just cannot read the file. The same thing happens when I call
hashcat /dev/nullwhich simulates an unreadable content source and also throwsNo hash-mode matches the structure of the input hash.just like it does with firejail.Behavior without a profile
What changed calling
LC_ALL=C firejail --noprofile /path/to/programin aterminal?
It seems to work fine and detects the hash. Both with and without LC_ALL=C however I am aware this issue seems to just require a
hashcat.profiletweak.Additional context
Any other detail that may help to understand/debug the problem
Oddly if I call
firejail hashcat /the/hash/file.txtit throws a different error/usr/local/bin/OpenCL/: No such file or directory, this is inconsistent with the hashcat>firejail symlink which firecfg creates. I am not sure why invoking firejail for hashcat intentionally seems to exhibit a different problem than firecfg's firejail symlink for the application.The above quirk doesn't happen when specifying its full path /usr/bin/hashcat. Maybe just inheriting the terminal's profile when specified by shortname? Not relevant to the reported issue however.
Environment
Archlinux
firejail --version).firejail version 0.9.72
was compiled (
git rev-parse HEAD).Checklist
/usr/bin/vlc) "fixes" it).https://github.com/netblue30/firejail/issues/1139)browser-allow-drm yes/browser-disable-u2f noinfirejail.configto allow DRM/U2F in browsers.--profile=PROFILENAMEto set the right profile. (Only relevant for AppImages)Log
Output of
qOutput of
LC_ALL=C firejail --debug /path/to/program@ipaqmaster commented on GitHub (Jan 2, 2024):
Creating
/etc/firejail/hashcat.localwith contentignore private-tmpresolves the access issue.@ipaqmaster commented on GitHub (Jan 3, 2024):
Despite no other
hashcatprocess on the system yet re-launching it also sometimes throwsAlready an instance '/usr/bin/hashcat' running on pid 7despite there being no other hashcat processes running. But only sometimes.@ghost commented on GitHub (Jan 3, 2024):
Just a FYI: upcoming Firejail release will support improved firecfg disablements via /etc/firejail/firecfg.d.
Please report profile bugs for programs that you observe to not work as expected with firecfg.
Can you open a PR to fix hashcat.profile accordingly?