warsaw
is a spyware that is foisted by Brazillian banks upon Brazillian users of internet banking
under the guise of a "security module".
This repository contains code to build and run a container in rootless mode
This repository requires buildah
to build and podman
to run.
It was tested in a machine that had fuse-overlayfs
installed before first running buildah
or podman
.
Please follow the links above to install those tools.
It might be possible to build and run with other tools, but this hasn't been tested.
Run:
make
Run the container with:
./run.sh
Once you get to the container shell, run firefox with:
firefox --no-remote &
Saved files will be downloaded in the ~/Downloads
folder. Move them to /tmp
to share them with the host machine.
- Refactor the name
warsaw-banking
into a variable that can be overriden inMakefile
,build.sh
andrun.sh
- Perhaps rebuild
run.sh
afterbuild.sh
with the correct name.
- Perhaps rebuild
- Installation currently adds the locally generated Warsaw Certificate Authority to the firefox profile of the
ubuntu
user.- Find a way to avoid that, as it allows MitM attacks where this certificate can be used to impersonate other SSL sites.
- Instead, automate creating the profile and appending the generated
cert_override.txt
in theubuntu
user's firefox profile during build.
- Find a way to mount or export the
Downloads
folder from the container so it's easier to export PDF receipts, downloads and stuff.- This means finding a way of making the internal
ubuntu
user run as the same uid as the user running podman.- warsaw didn't like it when I tried running the container mapping the current user to
ubuntu
like this:--uidmap=0:1:999 --uidmap=1000:0:1 --uidmap=1001:1000:64536
--gidmap=0:1:999 --gidmap=1000:0:1 --gidmap=1001:1000:64536
- warsaw didn't like it when I tried running the container mapping the current user to
- Or perhaps, make the host user share a group with
ubuntu
in the container, so nochown
ing is necessary. - A less satisfying alternative is to mount an external directory, chown the files to the ubuntu user at boot and chown to root at container shutdown.
- Even less satisfying, but better than nothing, is to create a subdirectory on
/tmp
from which the host use can copy files to their own folder.
- This means finding a way of making the internal
- Create
.desktop
launcher and app indicator that shows warsaw is running, like pgadmin4 does. - Uninstall unnecessary packages (e.g. sshd, cron) during
root/install.sh