Security when using Puppy on the internet?

Moderator: Forum moderators

Post Reply
User avatar
wizard
Posts: 2189
Joined: Sun Aug 09, 2020 7:50 pm
Location: Oklahoma, USA
Has thanked: 3039 times
Been thanked: 821 times

Security when using Puppy on the internet?

Post by wizard »

This topic is a summary of some of the methods discussed on the forum that will improve your Puppy security when doing financial, online buying or other sensitive transactions on the web.

Regardless of what level of methods you choose, make yourself a small target.
* Boot
* Complete your transactions
* Shutdown, don't save and reboot
If you must leave a boot session open:
* Close the browser
* Use Puppy's internet connection tools to disconnect from the internet

All of the methods are most effective if the running Puppy is the only drive and operating partition attached to the computer. If this is not possible you can temporarily disable other drives/partitions during your session. See notes on the lockset utility.

IMO, Level 2, #1, #3 and #4 are easiest to implement with good protection. Also there are combinations of methods that can be used.

Finally, these only affect your OS and do nothing to protect you from social engineering or other user focused attacks.

Level 1

1. * Run a newer version of Puppy
2. * Enable Puppy firewall
3. * Use a dedicated Puppy for sensitive transactions
4. * If you use a savefile/folder use a dedicated one
5. * Boot with no savefile/folder (also referred to as "ram only" or pupmode 5)
6. * Run a newer version of a web browser
7. * Run the browser as user "spot"
8. * Configure your browser settings to "harden" it against attack (settings are a little different
- for each brand, check the web for yours)
9. * If using a "portable" browser, only use a dedicated install of it

Level 2

All of Level 1 plus boot from write protected media including:

1. * Boot from external media (USB flash, SDcard) with no savefile/folder
++easy to setup
++allows customization
++easy to make changes
--requires creating a ydrv .sfs file for customization (see instructions below)
--requires additional ram for ydrv
DO NOT use pfix=nocopy in grub (this will allow you to remove the
device after the boot is complete)
--requires removing media after system is booted to prevent writing

2. * Boot from CD or DVD
--requires CD/DVD drive
--slow booting
--requires remastering the ISO if customization is desired
--requires remaking media to make changes

3. * SDcard with write protect switch (can also then be used in a SD to USB adapter)
++allows use of save file (caution required)
++easy to make changes
++easy to include .sfs and portables (testing required, Notes below)

4. * USB flash with write protect switch
++allows use of save file
++easy to make changes
++easy to include .sfs and portables (testing required, Notes below)
--more expensive than SDcard

5. * Boot from Puppy ISO using Ventoy (USB)
++easy to include .sfs and portables (testing required, Notes below)
--requires installing and configuring Ventoy
--requires remastering the ISO if customization is desired

6. * Boot from Puppy ISO using a virtual machine (VM)
++easy to include .sfs and portables (testing required, Notes below)
--requires computer with adequate resources to run a VM
--requires installing and configuring VM software
--requires remastering the ISO if customization is desired

7. * Install Puppy ISO to a USB that is formatted as ISO9660. Can be done using the DD command or using Rosa Image Writer
--requires remastering the ISO if customization is desired
--requires remaking media to make changes

Level 3

1. * Write protect a drive partition using software
++Can be applied to both internal or external drives
++Allows customization
++Can be changed/edited
++Can hide access to other drives
--requires creating a ydrv .sfs file
--Requires detailed setup
--Not as positive as some other Level 2 media

What is write protected:
* All files and directories (at the time of protection) in the top level directory

What can still be written:
* New files or directories can be added to the top level directory
* Changes can be made to the running session (true of all the methods), but are not saved after reboot.

Example setup using BookwormPup64 on USB:
* Create a bootable ext3/4 USB using Menu>FrugalPup
* Open the USB boot partition and edit grub.cfg as follows:
- pmedia=usbflash
- DO NOT use nocopy in grub.cfg pfix
* Boot from the USB
* Install lockset.pet
* Create a ydrv .sfs (see instructions below)
* Check functions, do not use any protect or disable functions yet
* When satisfied click: Lock Protect
* Use the disable buttons to disable drives & partitions including the boot drive/partition

Creating a ydrv .sfs
NOTE: a ydrv will require additional ram, so you may want to limit adding additional programs
* Boot drive
* Customize, i.e, add programs, configure internet, add website bookmarks, etc
* Shut down and create savefolder
* Reboot
* Install nicOS-Utility-Suite-2022.pet https://www.forum.puppylinux.com/viewto ... 827#p69307
* Run Menu>Utility>NicOS_Utility-Suite
- 1st window, select 5
- 2nd window, select 1, 2, 4
- 3rd window, choose your working area, be sure to note the drive and partition selected
When finished, a Rox window should open showing the new ydrv
* Cut/Copy the ydrv .sfs file into the same directory as your savefolder (main Puppy directory)
* Rename your savefolder, i.e, dpupsave, rename to dpupsav, you can also just move it to another drive/partition
* Reboot, DO NOT SAVE

NOTES on using write protected media:
* Portable programs cannot run from write-protected media
These work-arounds can be used
* Portable programs have to be placed in /root
* Portable browsers or any app that must run as user "spot" must be placed in /root/spot

About the lockset utility

lockset.jpg
lockset.jpg (11.37 KiB) Viewed 638 times

Lockset is not hack proof, it just adds new layers of obstacles and obfuscation.
It can write protect the boot drive partition (ext format only) and can also temporarily disable both drives and partitions. Lockset.pet installs the utility into /root/Startup so it runs automatically at boot. It requires "yad". Although lockset is specified in Level 3, it could also be adapted to other methods, testing required.

Some drives or partitions may not allow you to disable them.

Last, to unprotect a drive partition:

* Boot another Puppy
* Insert any external drive that was protected
* Click the icon on the desktop for the protected drive partition
A Rox window will open in the top level directory
* Press: F4
A terminal will open
* Type: chattr -R -i *
* Press: enter

wizard

UPDATE 250417: See post #6 for additional tools

Attachments
lockset.pet
(1.08 KiB) Downloaded 7 times
Last edited by wizard on Thu Apr 17, 2025 2:47 pm, edited 8 times in total.

Big pile of OLD computers

User avatar
jp734
Posts: 301
Joined: Fri Jul 17, 2020 10:23 pm
Has thanked: 127 times
Been thanked: 109 times

Re: Security when using Puppy on the internet?

Post by jp734 »

These are good stuff @wizard . :thumbup:

The Art of Magic and The Magic of Art

User avatar
Chelsea80
Posts: 390
Joined: Tue Mar 09, 2021 12:44 am
Has thanked: 49 times
Been thanked: 84 times

Re: Security when using Puppy on the internet?

Post by Chelsea80 »

@wizard

Thank you for taking the time to put together a very informative post.

Would any adaptation have to be made to any part of your advice for using in either of my signatures and / or Firefox Version 137.0.1 (32-bit) ?

Chelsea80

1. BionicPup32+28 19.03 - Linux 4.9.163 - lxpup - 32-pae [i686] - (UPup Bionic Beaver)
....Frugal Install - Internal HDD - Gateway MX8716b - HDD 120GB - RAM 2GB

2. Friendly-Bionic32 v1.1
....USB Stick 2GB

User avatar
wizard
Posts: 2189
Joined: Sun Aug 09, 2020 7:50 pm
Location: Oklahoma, USA
Has thanked: 3039 times
Been thanked: 821 times

Re: Security when using Puppy on the internet?

Post by wizard »

@Chelsea80

Some may not work due to limitations of your hardware. Do you have a particular method in mind?

Thanks
wizard

Big pile of OLD computers

User avatar
mikewalsh
Moderator
Posts: 6586
Joined: Tue Dec 03, 2019 1:40 pm
Location: King's Lynn, UK
Has thanked: 1044 times
Been thanked: 2215 times

Re: Security when using Puppy on the internet?

Post by mikewalsh »

@wizard :-

Nicely (and very concisely) summarized.

Excellent stuff. Well done.....and thanks!

Mike. ;)

User avatar
wizard
Posts: 2189
Joined: Sun Aug 09, 2020 7:50 pm
Location: Oklahoma, USA
Has thanked: 3039 times
Been thanked: 821 times

Re: Security when using Puppy on the internet?

Post by wizard »

Two additional programs to help security:

Use dns-changer2 from here: https://www.forum.puppylinux.com/viewtopic.php?t=13135

This will insure your DNS server is legitimate.

If you must leave a boot session open:
* Close the browser
* Use Puppy's internet connection tools to disconnect from the internet

This is quoted from the first post. Here is a little program to turn your web connection OFF or ON while still leaving your LAN active. Just download, extract to any location and run. Requires YAD.

weboffon.jpg
weboffon.jpg (12.15 KiB) Viewed 155 times

wizard

Attachments
web-off.sh.tar.gz
extract before using
(536 Bytes) Downloaded 5 times

Big pile of OLD computers

Post Reply

Return to “Security”