Arch13 Studios https://www.arch13.com/ The personal website of Bryce W. Bounds Sat, 24 Jul 2021 05:31:20 +0000 en-US hourly 1 https://wordpress.org/?v=7.1.5 https://www.arch13.com/wp-content/uploads/2020/04/cropped-A13favicon-1-32x32.png Arch13 Studios https://www.arch13.com/ 32 32 23344472 MS Windows Defender & DeCSS Part II https://www.arch13.com/ms-windows-defender-decss-part-ii/ Fri, 23 Jul 2021 22:26:00 +0000 https://www.arch13.com/?p=3115 Mutated / Changed Definition MS Windows Defender now see’s the same file as a different definition: Trojan:Win32/Orsam!rts. The definition of the new threat? This is a generic detection, which means we use this name for a large number of trojans. Again, this is the same copy of DeCSS. Nothing has changed. Microsoft Defender still ignoring […]

The post MS Windows Defender & DeCSS Part II appeared first on Arch13 Studios.

]]>
Mutated / Changed Definition
Windows Defender DeCSS Quarantine on 07/23/2021

MS Windows Defender now see’s the same file as a different definition: Trojan:Win32/Orsam!rts.

The definition of the new threat? This is a generic detection, which means we use this name for a large number of trojans.

Again, this is the same copy of DeCSS. Nothing has changed.


Microsoft Defender still ignoring exception lists

Perhaps more important, the whitelist or exceptions did not work.

Windows Defender Existing Whitelist Exceptions

As 7/20/2021 I set an exception for the whole \Programs folder on the Z: drive (SMB Share). I also set a specific exception to the DeCSS program. As of 7/23/2021 Defender ignored both whitelist items and still quarantined the file, folwed by immediate deletion.

As before, the use of mpcmdrun -restore -all -Path D:\temp is required to retrieve the file from a dump as Defender continues to not restore files to SMB shares

The post MS Windows Defender & DeCSS Part II appeared first on Arch13 Studios.

]]>
3115
MS Windows Defender & DeCSS https://www.arch13.com/ms-windows-defender-decss/ https://www.arch13.com/ms-windows-defender-decss/#comments Thu, 22 Jul 2021 00:14:10 +0000 https://www.arch13.com/?p=3086 Windows Defender is listing the DeCSS DVD decryption library as a false positive virus on 07/20/2021.
MS appears to have issued a fix as of 07/21/2021.

The post MS Windows Defender & DeCSS appeared first on Arch13 Studios.

]]>
On 7/20/2021 at 7:42pm, Windows Defender definitions daily update picked up a  copy of the famous DeCSS DVD encryption software as a Trojan and performed an immediate quarantine, followed by deletion 60 seconds later. This appears to be a false positive, notable only because the software it is incorrectly targeting is so famous.

It picks up the software as the Glupteba!ml Trojan per the screenshot below, marking it as a Severe threat;

 

Windows Defender is also misdiagnosing XFX Keygen programs from the mid-2000’s as high threats. Yes they crack software, but that’s a medium to low threat unless the concern is something bigger.


Download the File

If you are feeling brave, here is the file in question: DeCSS.exe <— Warning! Here be dragons. Download this at your own risk. Know the risks.

I vouch for the provence of this file as follows: It was acquired via DirectConnect from a file hub run by 2600 affiliated contributors in 2004. It’s code signature matches the incorrectly used 1999 code signature of David Fawcus that Jon Lech Johansen used to sign the executable.

Here is the metadata:


Separately, here is the XFX Force Keygen being tagged as a false positive High threat

Here is the file: KEYGENXFORCE.exe <— Warning! Here be dragons. Download this at your own risk. Know the risks.


File Analysis & Log Files

Kapersky finds no threat. On VirusTotal, 32 out of 72 engines misidentify this as malicious.

Here is last nights log file

-------------------------------------------------------------------------------------
MpCmdRun: Command Line: mpcmdrun  -restore -all
 Start Time: ‎Tue ‎Jul ‎20 ‎2021 20:10:48

MpEnsureProcessMitigationPolicy: hr = 0x1
ERROR: MpQuarantineRequest failed: name: HackTool:Win32/Keygen!MSR, GUID: {8003F52C-0000-0000-33A7-F7F5B974DFEF} (80508014)
ERROR: QuarantineRestore failed (80508014)
ERROR: MpQuarantineRequest failed: name: HackTool:Win32/Keygen!MSR, GUID: {8003F52C-0000-0000-B7CE-870973926357} (80508014)
ERROR: QuarantineRestore failed (80508014)
ERROR: MpQuarantineRequest failed: name: Trojan:Win32/Glupteba!ml, GUID: {80040956-0000-0000-D48C-06A3EB93B95A} (80508014)
ERROR: QuarantineRestore failed (80508014)
MpCmdRun.exe: hr = 0x80508014.
MpCmdRun: End Time: ‎Tue ‎Jul ‎20 ‎2021 20:10:48
-------------------------------------------------------------------------------------

You dump the log by opening an elevated CMD window in the folder C:\Program Files\Windows Defender folder.

You then execute mpcmdrun -restore -listall to list all quarantined items. Follow that with mpcmdrun -restore -all to restore all (Danger!)

You’ll notice my log above lists a failed code of 80508014 for each file. So instead I execute mpcmdrun -restore -all --Path D:\temp to restore it to a different location than the NAS it was deleted from.

The data will then be fine at rest in D:\temp until I try to copy it back to where Defender Deleted it on the NAS. At which point it deletes it again.


Closing and General Info

My OS Build is 19043.1110, version 21H1 installed on 6/10/2020.

The data at rest on the NAS lives on a DS920+ Synology with a 4tb Raid 1 volume in BRTFS format. This NAS volume is shared via SMB as the Z: drive on all machines in the house. The NAS contains other separate volumes servicing an Internet facing Pi running Traefikv2 with multipule services on a separate VLAN.

MS Has pushed out an update that appears to fix the false positive on DeCSS as of 7:42am this morning. As of 8:10pm on 7/21/21 it is still misidentifying XFX Keygens as a threat.

Update on 7/23/2021

Defender is once again ignoring whitelists and exceptions and silently deleting this file

The post MS Windows Defender & DeCSS appeared first on Arch13 Studios.

]]>
https://www.arch13.com/ms-windows-defender-decss/feed/ 8 3086
Raspberry Pi & Random Number Generation https://www.arch13.com/raspberry-pi-random-number-generation/ Sat, 26 Dec 2020 17:52:02 +0000 https://www.arch13.com/?p=2558 You cannot have good encryption without random numbers, but few people realize the Raspberry Pi (all versions) have a random number generator right on their silicon. Unfortunately, the Raspberry Pi OS’s do not utilize it without a set of tools not installed by default. As a result, you end up with a much smaller pool […]

The post Raspberry Pi & Random Number Generation appeared first on Arch13 Studios.

]]>

You cannot have good encryption without random numbers, but few people realize the Raspberry Pi (all versions) have a random number generator right on their silicon.

Unfortunately, the Raspberry Pi OS’s do not utilize it without a set of tools not installed by default. As a result, you end up with a much smaller pool of random numbers (Entropy) to generate encryption for PGP, SSL Keys and the like.

To activate the (Pseudo) Random Number Generator on the silicon ARM chip, we only need to install rng-tools

Install rng-tools

Older versions of the PI OS do not have the tool installed. However, if you have the current Raspberry PI OS’s since the name change from Raspbain, it is installed already.

sudo apt-get install rng-tools 

Edit rng-tools config file

Now you’ll need to open /etc/default/rng-tools in nano and edit a line to add the hardware device to the pool of random numbers Linux draws from.

sudo nano /etc/default/rng-tools

Next uncomment (remove the #) from the following line: #HRNGDEVICE=/dev/hwrng

Now hit CTRL+X to close nano and type Y to save the edit.

Now restart rng-tools with sudo service rng-tools restart

The post Raspberry Pi & Random Number Generation appeared first on Arch13 Studios.

]]>
2558
Security Setup & Hardening of Raspberry Pi OS {Buster} https://www.arch13.com/security-setup-hardening-of-raspberry-pi-os-buster/ Fri, 19 Jun 2020 02:07:14 +0000 http://www.arch13.com/?p=1918 So you got a new Raspberry Pi, and after some tinkering, like many others, you’ve decided you want to take the plunge into self hosting something. And why not? The Pi is a powerful computer and a very able small scale server with nearly endless use cases. But if you are going to do this, […]

The post Security Setup & Hardening of Raspberry Pi OS {Buster} appeared first on Arch13 Studios.

]]>
So you got a new Raspberry Pi, and after some tinkering, like many others, you’ve decided you want to take the plunge into self hosting something. And why not? The Pi is a powerful computer and a very able small scale server with nearly endless use cases.

But if you are going to do this, you’re going to be exposing your Pi to the internet. And the internet can get very dangerous very fast with no protection (feel free to insert a dirty joke here). So we need to setup and harden the Pi just as we would any standard server deployed at the edge.

To do this you are going to have to harden your Raspberry Pi OS during setup and daily use. I recommend steps 1-4 are done first, Then install all software you want to host & configure it. Finally do steps 5-6. This will eliminate the firewall and fail2ban as potential setup problems.

There are several things we can do to mitigate the risks and harden our security. These are;

  1. Change the default password for the Pi user
  2. Change the Raspberry Pi default hostname
  3. Create a new user for regular use and maintenance
  4. Force Sudo to require a password
  5. Install a firewall (UFW)
  6. Install fail2ban to block repeated external attacks

A note as we start, everything we need to do is in bash. If you’ve used DOS before, this is the equivalent of the command prompt. In Rasbain it’s referred to as the “Terminal”. If you are looking at the desktop, you can find it here:

image showing where to find the terminal in the GUI of Raspberry Pi

Otherwise you can find it by using SSH to connect to your PI. I recommend SSH due to it’s low overhead and that you should get accustomed to using a command line in general, but do whatever feels most comfortable for you.

Setup

The default OS on the Raspberry Pi is Raspberry Pi OS, a fork of Debain. If you’ve used Ubuntu before you’ve already used Debain. Raspberry Pi OS (formerly Rasbain) has broad community support and will receive regular updates for years to come. You will need to download the OS image to your computer and use an imaging software to write that to a memory card for first boot.

You can find excellent instructions on how to do this here: https://www.raspberrypi.org/documentation/installation/installing-images/README.md

I also recommend that enable SSH and VNC prior to first boot so you can do everything remotely instead of by plugging the Pi into a monitor with a keyboard and mouse. To enable VNC you will need to either use SSH or setup the Pi with a keyboard and monitor first.

Change the default password for the Pi user

Every Pi boots off a fresh install of the OS with the user “pi” enabled by default and a default password of “raspberry” (neither are capitalized).

Unfortunately, everyone in the world knows this so if you expose your Raspberry Pi to the internet without changing this, then everyone can log in as the administrator and change whatever they want. That’s because this default user has root privileges. So the first thing you are going to want to do is change this password. You can do this in the setup that runs when you first boot (herein referred to as raspi-config), but lets learn how to do this at the command line as that’s where most of Linux happens if you want to learn.

Type the following at the command line and hit enter;

passwd

Then type in any new password you want and hit enter. I very much recommend you choose a complex password you will remember.

Change the Raspberry Pi default hostname

The hostname is what the Raspberry Pi calls itself to all other devices on your network. It’s important to change this because a lot of bad faith actors will try and gain access to other portions of your network using the open ports and then look through the devices on the network for the Pi so they can try and exploit it. This works in part because the majority of people don’t change the Pi username / password. So they can find the device via it’s hostname, then easily log in.

Unlike most other commands here, this command is much easier when executed via the raspi-config setup system instead of manually via the command line. This is because doing this manually requires editing 3 different configuration files.

Let’s access the configuration setup software with the following command;

sudo raspi-config

Once the setup program loads, use the keyboard arrows to select item #2, “Network Options”. One the next screen select option N1 “Hostname”. You can now enter a new hostname with the letters A-Z (upper and lower), 1-9 and -. Hit enter when done and you will be brought back to the raspi-config main menu. Use tab to select Finish and press enter.

hostname prompt in raspi-config

The Pi will now reboot. When it does, you can log into your router and see it listed by it’s new hostname in the list of connected devices. You can also check it worked by typing the following at the command prompt;

hostname

The command line will print out the host name you entered in raspi-config if everything was successful.

Create a new user for regular use and maintenance

Once you’ve changed the username of the “pi” user, you should retire that user and create a new one for yourself. The “pi” user should only be used for upgrades or major changes. Think of it like the “Administrator” user in Windows. You don’t log in as “Administrator” every morning, you log in as you.

You should create your own user because anyone that gains access to the login of the Pi from outside your network is unlikely to know your personal username and password unless they know additional personally identifying information about you. Together with the Pi user no longer having the default password, this will reduced a bad actors ability to successfully login by 90%.

To add a new user, type;

sudo adduser {usernameyouchoose}

You will then be prompted to add a password for the new user and then hit enter.

The new user will have a home directory of /home/{usernameyouchoose}/.
Likewise, the pi user had a home directory of /home/pi/

Now lets take it one step farther and give your new user Sudo privileges with the correct password when prompted. In other words, you can use sudo while logged in as your user the same way you can right click in windows and select “Run as Administrator”.

Type the following;

sudo usermod -a -G adm,dialout,cdrom,sudo,audio,video,plugdev,games,users,input,netdev,gpio,i2c,spi {usernameyouchoose}

You can then check that this worked by typing the following;

sudo su - {usernameyouchoose}

If that command runs without error, then this worked and your new daily user account has sudo privileges.

Force Sudo to require a password

In Linux using sudo in front of any command is the equivalent of right clicking a program and selecting “Run as Administrator”. Anything you type will be done without question, even if it damages the system, erases required files, etc.

You should require sudo ask for a password before it does anything that could damage the system. To do this you can either edit the file /etc/sudoers or use a command to add the line we want without having to open and possibly mistype something in this very important files.

To do that type the following;

echo "{usernameyouchoose}  ALL=(ALL)   PASSWD: ALL" >> /etc/sudoers

Install a firewall (UFW)

**Note, I wrote a long complicated description for this, then realized The Raspberry Pi Foundation already has such a a clear description that they should get the credit for this. Below is completely ©Raspberry Pi Foundation**

There are many firewall solutions available for Linux. Most use the underlying iptables project to provide packet filtering. This project sits over the Linux netfiltering system. iptables is installed by default on Raspberry Pi OS, but is not set up. Setting it up can be a complicated task, and one project that provides a simpler interface than iptables is ufw, which stands for ‘Uncomplicated Fire Wall’. This is the default firewall tool in Ubuntu, and can be easily installed on your Raspberry Pi:

sudo apt install ufw

ufw is a fairly straightforward command line tool, although there are some GUIs available for it. This document will describe a few of the basic command line options. Note that ufw needs to be run with superuser privileges, so all commands are preceded with sudo. It is also possible to use the option --dry-run any ufw commands, which indicates the results of the command without actually making any changes.

To enable the firewall, which will also ensure it starts up on boot, use:

sudo ufw enable

To disable the firewall, and disable start up on boot, use:

sudo ufw disable

Allow a particular port to have access (we have used port 22 in our example):

sudo ufw allow 22

Denying access on a port is also very simple (again, we have used port 22 as an example):

sudo ufw deny 22

You can also specify which service you are allowing or denying on a port. In this example, we are denying tcp on port 22:

sudo ufw deny 22/tcp

You can specify the service even if you do not know which port it uses. This example allows the ssh service access through the firewall:

sudo ufw allow ssh

The status command lists all current settings for the firewall:

sudo ufw status

The rules can be quite complicated, allowing specific IP addresses to be blocked, specifying in which direction traffic is allowed, or limiting the number of attempts to connect, for example to help defeat a Denial of Service (DoS) attack. You can also specify the device rules are to be applied to (e.g. eth0, wlan0). Please refer to the ufw man page (man ufw) for full details, but here are some examples of more sophisticated commands.

Limit login attempts on ssh port using tcp: this denies connection if an IP address has attempted to connect six or more times in the last 30 seconds:

sudo ufw limit ssh/tcp

Deny access to port 30 from IP address 192.168.2.1

sudo ufw deny from 192.168.2.1 port 30

For the majority of people that will be exposing their pi to the internet, you will need to open the following ports;

  • Port 22 – for SSH access. You should use the limit command to limit the amount of times someone can try and log in via SSH by giving them a forced timeout.
  • Port 80 – Standard HTTP:// port for insecure web page access
  • Port 443 – Standard HTTPS:// port for secure web page access

Now lets reboot the Pi with the following command for this to take effect;

sudo shutdown -r -t 0

Install fail2ban to block repeated external attacks

fail2ban is a program utilized to block repeated bad actor attempts to access or login to your Pi by blocking and banning the source IP address’s from the internet. This helps to reduce DDOS attacks and limits the amount of times someone can try and login before they cannot reach your server to try again.

Fail2ban is well configured already, and can be utilized as-is for the purpose of this tutorial. To install it type;

sudo apt-get install fail2ban

fail2ban can be very complicated (or very easy). I recommend a little lite reading on the topic over a cup of morning coffee to ascertain what customization’s you may want to add.

Fin!

That’s it. This should cover you on the basics out of the box. You should now be secure for 90% of the situations you will encounter. Fine tune your UFW and fail2ban setting once you have all services you will be hosting installed by researching further what is applicable to you. I recommend googling both terms and the name of anything you are hosting to see what others recommend specific to those use cases.

The post Security Setup & Hardening of Raspberry Pi OS {Buster} appeared first on Arch13 Studios.

]]>
1918
Miami River Sunset – June 6th 2020 https://www.arch13.com/miami-river-sunset-june-6th-2020/ Tue, 16 Jun 2020 06:38:58 +0000 http://www.arch13.com/?p=2195 Miami River Sunset Timelapse looking north from Downtown Miami.

The post Miami River Sunset – June 6th 2020 appeared first on Arch13 Studios.

]]>
Miami River Sunset looking north from Downtown Miami.

Shot in a time-lapse of photos using CHDK on a Cannon powershot and animated using ffmpeg

The post Miami River Sunset – June 6th 2020 appeared first on Arch13 Studios.

]]>
2195
May 2020 Miami Storms https://www.arch13.com/may-2020-miami-storms/ Tue, 26 May 2020 15:57:45 +0000 http://www.arch13.com/?p=1977 The post May 2020 Miami Storms appeared first on Arch13 Studios.

]]>

The post May 2020 Miami Storms appeared first on Arch13 Studios.

]]>
1977
How you know you work in a Miami Office https://www.arch13.com/how-you-know-you-work-in-a-miami-office/ Wed, 07 Feb 2018 22:54:04 +0000 http://www.arch13.com/?p=482 You know you work for a Miami company when the entire office stops at 3:05 post lunch for Cafecito. The British with their tea would be proud of how civilized we are.

The post How you know you work in a Miami Office appeared first on Arch13 Studios.

]]>
Cafecito serving carafe on a conference table top
Cafe Con Leche at Wolfberg Alvarez & Partners, Inc.

You know you work for a Miami company when the entire office stops at 3:05 post lunch for Cafecito.

The British with their tea would be proud of how civilized we are.

The post How you know you work in a Miami Office appeared first on Arch13 Studios.

]]>
482
Full Moon Rising Timelapse https://www.arch13.com/full-moon-rising-timelapse/ Wed, 13 Sep 2017 19:42:29 +0000 http://www.arch13.com/?p=420 The post Full Moon Rising Timelapse appeared first on Arch13 Studios.

]]>
The post Full Moon Rising Timelapse appeared first on Arch13 Studios.

]]>
420
Hurricane Irma https://www.arch13.com/hurricane-irma/ Wed, 13 Sep 2017 15:50:29 +0000 http://www.arch13.com/?p=401 Hurricane Irma visited downtown Miami on 9/10/2017, and the view from the 30th floor was spectacular. Here’s a Before and During of the Storm Here’s an additional compilation of timelapses from other vantage points in the building: The hurricane started in the early morning hours, with it’s eye about 200 miles south-west of Miami-Dade County. […]

The post Hurricane Irma appeared first on Arch13 Studios.

]]>
Hurricane Irma visited downtown Miami on 9/10/2017, and the view from the 30th floor was spectacular.

Here’s a Before and During of the Storm

Before imageAfter image

Here’s an additional compilation of timelapses from other vantage points in the building:

The hurricane started in the early morning hours, with it’s eye about 200 miles south-west of Miami-Dade County. It passed up through the keys along the west coast of Florida, it’s heaviest storm quadrant passing over Miami for 12 hours. On the 30th floor you can feel the building shaking and see the windows flexing in their frames. The south stairwell of the building became a wind chimney, exhausting negative air pressure out and keeping the pressure equal so the building did not succumb to shear.

As the day died down I shot a timelapse of the last bands passing through Miami.

By that night the storm had passed, leaving just a city without lights in either direction.

Here’s looking East:

And here’s looking West:

As the sun went down for the day, you could be mistaken that the city had no damage or issues. But look closer, as darkness descends, you’ll see that none of the highways have streetlights. This grid in the photo was one of the few with power (in fact, we never lost power or internet!)

By 24 hours later at sundown on Monday most of Miami was lookng a lot different. We still have over 1.5 million without power as I write this, but that number is shrinking.
In this timelapse as the sun goes down you’ll see Interstate 95 still has no power for it’s street lights.

The post Hurricane Irma appeared first on Arch13 Studios.

]]>
401
The Historic Architecture of Minneapolis https://www.arch13.com/the-art-deco-of-minneapolis/ Tue, 27 Sep 2016 17:21:36 +0000 http://www.arch13.com/?p=314 In August 2015 my wife and I had the opportunity to visit Minneapolis for a job interview for her. Having not explored (or visited) the mid-West before, I jumped at the chance to accompany her and could not have been more surprised at the Deco, Art Nouveau, and classic architecture the urban area is hiding. […]

The post The Historic Architecture of Minneapolis appeared first on Arch13 Studios.

]]>
In August 2015 my wife and I had the opportunity to visit Minneapolis for a job interview for her. Having not explored (or visited) the mid-West before, I jumped at the chance to accompany her and could not have been more surprised at the Deco, Art Nouveau, and classic architecture the urban area is hiding.Minneapolis 2015_11

Minneapolis has an excellent array of building types, all connected via their amazing skyway system of bridges. From a structural perspective alone that means they are tying new and old structures together where the bridges have one one motion of movement, and each building type has a separate motion with no failures. When you take into account the construction of the old buildings and their craftsmanship, it becomes truly impressive.

Minneapolis 2015_4The buildings date mostly from the 1920’s onward with a few modern skyscrapers anchoring the verticality of the urban area. There appears to be a good portion of the property available for rental and renovation, with most historic facades already restored.

Among the gems in the gallery bellow of our walking tour of downtown you will find a beautiful terracotta facade, and amazing infill museum in an historic flour mill plant, art deco facades, and a modern tower for contrast.

The post The Historic Architecture of Minneapolis appeared first on Arch13 Studios.

]]>
314