domingo, 28 de janeiro de 2024

Recovering Data From An Old Encrypted Time Machine Backup

Recovering data from a backup should be an easy thing to do. At least this is what you expect. Yesterday I had a problem which should have been easy to solve, but it was not. I hope this blog post can help others who face the same problem.


The problem

1. I had an encrypted Time Machine backup which was not used for months
2. This backup was not on an official Apple Time Capsule or on a USB HDD, but on a WD MyCloud NAS
3. I needed files from this backup
4. After running out of time I only had SSH access to the macOS, no GUI

The struggle

By default, Time Machine is one of the best and easiest backup solution I have seen. As long as you stick to the default use case, where you have one active backup disk, life is pink and happy. But this was not my case.

As always, I started to Google what shall I do. One of the first options recommended that I add the backup disk to Time Machine, and it will automagically show the backup snapshots from the old backup. Instead of this, it did not show the old snapshots but started to create a new backup. Panic button has been pressed, backup canceled, back to Google.


Other tutorials recommend to click on the Time Machine icon and pressing alt (Option) key, where I can choose "Browse other backup disks". But this did not list the old Time Machine backup. It did list the backup when selecting disks in Time Machine preferences, but I already tried and failed that way.


YAT (yet another tutorial) recommended to SSH into the NAS, and browse the backup disk, as it is just a simple directory where I can see all the files. But all the files inside where just a bunch of nonsense, no real directory structure.

YAT (yet another tutorial) recommended that I can just easily browse the content of the backup from the Finder by double-clicking on the sparse bundle file. After clicking on it, I can see the disk image on the left part of the Finder, attached as a new disk.
Well, this is true, but because of some bug, when you connect to the Time Capsule, you don't see the sparse bundle file. And I got inconsistent results, for the WD NAS, double-clicking on the sparse bundle did nothing. For the Time Capsule, it did work.
At this point, I had to leave the location where the backup was present, and I only had remote SSH access. You know, if you can't solve a problem, let's complicate things by restrict yourself in solutions.

Finally, I tried to check out some data forensics blogs, and besides some expensive tools, I could find the solution.

The solution

Finally, a blog post provided the real solution - hdiutil.
The best part of hdiutil is that you can provide the read-only flag to it. This can be very awesome when it comes to forensics acquisition.


To mount any NAS via SMB:
mount_smbfs afp://<username>@<NAS_IP>/<Share_for_backup> /<mountpoint>

To mount a Time Capsule share via AFP:
mount_afp afp://any_username:password@<Time_Capsule_IP>/<Share_for_backup> /<mountpoint>

And finally this command should do the job:
hdiutil attach test.sparsebundle -readonly

It is nice that you can provide read-only parameter.

If the backup was encrypted and you don't want to provide the password in a password prompt, use the following:
printf '%s' 'CorrectHorseBatteryStaple' | hdiutil attach test.sparsebundle -stdinpass -readonly

Note: if you receive the error "resource temporarily unavailable", probably another machine is backing up to the device

And now, you can find your backup disk under /Volumes. Happy restoring!

Probably it would have been quicker to either enable the remote GUI, or to physically travel to the system and login locally, but that would spoil the fun.
Related articles

  1. Pentest Tools Kali Linux
  2. Hack Tools
  3. Hack Rom Tools
  4. Hacking Tools Pc
  5. Hacking Tools For Kali Linux
  6. Pentest Tools Website Vulnerability
  7. Beginner Hacker Tools
  8. Hacker Techniques Tools And Incident Handling
  9. Pentest Tools Alternative
  10. Hacking Tools Online
  11. Blackhat Hacker Tools
  12. Pentest Reporting Tools
  13. Hack Tools For Mac
  14. How To Make Hacking Tools
  15. Hacker Search Tools
  16. Hacker Tools 2020
  17. Hacker Tools Windows
  18. Free Pentest Tools For Windows
  19. Pentest Tools Website
  20. What Is Hacking Tools
  21. Hack Tools
  22. Hack Tools Mac
  23. Pentest Tools Subdomain
  24. Best Hacking Tools 2020
  25. Hacker Tools Free Download
  26. Hacking Tools And Software
  27. Pentest Tools Apk
  28. Hacker Tools Online
  29. Hacker Tools Software
  30. Computer Hacker
  31. Hack Tool Apk
  32. Hacker Tools For Mac
  33. Pentest Tools Url Fuzzer
  34. Hacker Techniques Tools And Incident Handling
  35. Tools Used For Hacking
  36. Hacker Tools Free
  37. Hacker Tools Mac
  38. Hak5 Tools
  39. Hacker Tools Linux
  40. Hacker Tools Linux
  41. Hacking Tools Usb
  42. Hack Tools Github
  43. Pentest Tools Find Subdomains
  44. Hacker Tools Software
  45. Pentest Tools Website
  46. Hacking Tools For Windows
  47. Best Hacking Tools 2019
  48. Hacking Tools Windows
  49. Hacking Tools For Windows
  50. Black Hat Hacker Tools
  51. Hacking Tools Hardware
  52. Hack Tools 2019
  53. Wifi Hacker Tools For Windows
  54. Hacking Tools For Mac
  55. Pentest Tools Framework
  56. Underground Hacker Sites
  57. Hacking Tools 2019
  58. Pentest Tools Bluekeep
  59. Termux Hacking Tools 2019
  60. Top Pentest Tools
  61. Hackrf Tools
  62. Best Pentesting Tools 2018
  63. New Hacker Tools
  64. Pentest Tools Free
  65. Pentest Tools Bluekeep
  66. Hacking Tools For Windows
  67. How To Install Pentest Tools In Ubuntu
  68. Pentest Recon Tools
  69. Growth Hacker Tools
  70. Pentest Box Tools Download
  71. Hacker Tools Mac
  72. How To Install Pentest Tools In Ubuntu
  73. Hack Website Online Tool
  74. Pentest Tools Alternative
  75. Hacking Tools Online
  76. Pentest Tools Tcp Port Scanner
  77. Hacking Tools For Pc
  78. What Are Hacking Tools
  79. Pentest Tools Nmap
  80. Pentest Tools For Mac

How SSPM Simplifies Your SOC2 SaaS Security Posture Audit

 


An accountant and a security expert walk into a bar… SOC2 is no joke.

Whether you're a publicly held or private company, you are probably considering going through a Service Organization Controls (SOC) audit. For publicly held companies, these reports are required by the Securities and Exchange Commission (SEC) and executed by a Certified Public Accountant (CPA). However, customers often ask for SOC2 reports as part of their vendor due diligence process.

Out of the three types of SOC reports, SOC2 is the standard to successfully pass regulatory requirements and signals high security and resilience within the organization — and is based on the American Institute of Certified Public Accountants (AICPA) attestation requirements. The purpose of this report is to evaluate an organization's information systems relevant to security, availability, processing integrity, confidentiality, and privacy — over a period of time (roughly six to twelve months).

As part of a SOC2 audit, it is necessary to conduct security checks across the company's SaaS stack that will look for misconfigured settings such as detection and monitoring to ensure continued effectiveness of information security controls and prevent unauthorized/ inappropriate access to physical and digital assets and locations.

If you're beginning or on a SOC2 audit journey, then an SSPM (SaaS Security Posture Management) solution can streamline the process and shorten the time it takes to pass a SOC2 audit successfully, fully covering your SaaS Security posture.

Learn how to streamline your organization's SOC2 compliance

What are the AICPA Trust Services Criteria (TSC)?

When external auditors engage in a SOC 2 audit, they need to compare what you're doing to a long list of established requirements from AICPA TSC. The "Common Controls" fall into five groups:

  • Security - Includes sub controls of the Logical and Physical Access (CC6)
  • Availability - Includes sub controls of the System Operations (CC7)
    • Processing integrity: Includes sub controls of the System Operations (CC7)
    • Confidentiality: Includes sub controls of the Logical and Physical Access (CC6)
    • Privacy - Includes sub controls of the Monitoring Activities (CC4)

      Within each common control are a set of sub controls that turn the overarching standard into actionable tasks.

      Passing a SOC 2 audit takes a lot of time, effort, and documentation. During a SOC2 audit, you not only need to show that your controls work during the audit period, but you also need to show that you have the ability to continuously monitor your security.

      Going through the entire TSC framework is too long for a blog post. However, a quick look into a couple of controls of Logical and Physical Access (CC6) and System Operations (CC7) gives you an idea of what some of the controls look like and how you can utilize an SSPM to ease the SOC2 audit.

      Get a 15-minute demo of how an SSPM can help your SOC 2 TSC audit

      Logical and Physical Access Controls

      This section sets out the types of controls needed to prevent unauthorized or inappropriate access to physical and digital assets and locations. Managing user access permissions, authentication, and authorization across the SaaS estate poses many challenges. In fact, as you look to secure your cloud apps, the distributed nature of users and managing the different access policies becomes increasingly challenging.

      Under CC6.1 control, entities need to:

      • Identify, classify, and manage information assets
      • Restrict & manage user access
      • Consider network segmentation
      • Register, authorize, and document new infrastructure
      • Supplement security by encrypting data-at-rest
      • Protect encryption keys

      Example

      The department that utilizes a SaaS app is often the one that purchases and implements it. Marketing might implement a SaaS solution for monitoring leads while sales implements the CRM. Meanwhile, each application has its own set of access capabilities and configurations. However, these SaaS owners may not be trained in security or able to continuously monitor the app's security settings so the security team loses visibility. At the same time, the security team may not know the inner workings of the SaaS like the owner so they may not understand more complex cases which could lead to a security breach.

      An SSPM solution, maps out all the user permissions, encryption, certificates and all security configurations available for each SaaS app. In addition to the visibility, the SSPM solution helps correct any misconfiguration in these areas, taking into consideration each SaaS app's unique features and usability.

      In CC.6.2 control, entities need to:

      • Create asset access credentiations based on authorization from the system's asset owner or authorized custodian
      • Establish processes for removing credential access when the user no longer requires access
      • Periodically review access for unnecessary and inappropriate individuals with credentials

      Example

      Permission drifts occur when a user has certain permissions as part of a group membership, but then gets assigned a specific permission that is more privileged than what the group has. Over time many users get extra permissions. This undermines the idea of provisioning using groups.

      Classic deprovisioning issues, an SSPM solution can spot inactive users and help organizations to quickly remediate, or at the very least, alert the security team to the issue.

      Under CC.6.3 control, entities need to:

      • Establish processes for creating, modifying or removing access to protected information and assets
      • Use role-based access controls (RBAC)
      • Periodically review access roles and access rules

      Example

      You might be managing 50,000 users across five SaaS applications, meaning the security team needs to manage a total of 250,000 identities. Meanwhile, each SaaS has a different way to define identities, view them, and secure identities. Adding to the risk, SaaS applications don't always integrate with each other which means users can find themselves with different privileges across different systems. This then leads to unnecessary privileges that can create a potential security risk.

      An SSPM solution allows visibility into user privileges and sensitive permission across all connected SaaS apps, highlighting the deviation from permission groups and profiles.

      System Operations

      This section focuses on detection and monitoring to ensure continued effectiveness of information security controls across systems and networks, including SaaS apps. The diversity of SaaS apps and potential for misconfigurations makes meeting these requirements challenging.

      In CC7.1 control, entities need to:

      • Define configuration standards
      • Monitor infrastructure and software for noncompliance with standards
      • Establish change-detection mechanisms to aler personnel to unauthorized modification for critical system, configuration, or content files
      • Establish procedures for detecting the introduction of known or unknown components
      • Conduct periodic vulnerability scans to detect potential vulnerabilities or misconfigurations

      It is unrealistic to expect from the security team to define a "configuration standard" that complies with SOC2 without comparing against a built-in knowledge base of all relevant SaaS misconfigurations and to continuously comply with SOC2 without using an SSPM solution.

      Get a 15-minute demo to see how an SSPM solution automates your SaaS security posture for SOC2 and other standards.

      Read more
      1. Free Pentest Tools For Windows
      2. Hacker Tool Kit
      3. Hacks And Tools
      4. Computer Hacker
      5. Pentest Tools Free
      6. Hack Tool Apk No Root
      7. Termux Hacking Tools 2019
      8. Pentest Recon Tools
      9. Hak5 Tools
      10. Hackrf Tools
      11. Hack Tools 2019
      12. Pentest Tools Tcp Port Scanner
      13. Game Hacking
      14. Hacker Tools Software
      15. Pentest Tools Website
      16. Nsa Hack Tools Download
      17. How To Install Pentest Tools In Ubuntu
      18. New Hacker Tools
      19. Pentest Tools
      20. Hacking Tools For Windows Free Download
      21. Hacker Techniques Tools And Incident Handling
      22. Ethical Hacker Tools
      23. Hacking Tools For Beginners
      24. Pentest Tools Github
      25. Pentest Tools Website
      26. Hacking Apps
      27. Hacker Tools Software
      28. Easy Hack Tools
      29. Nsa Hack Tools Download
      30. What Is Hacking Tools
      31. Hacker Tools Apk Download
      32. Hacking Tools 2019
      33. Hacks And Tools
      34. Tools For Hacker
      35. Hacker Tools Free
      36. Pentest Tools Bluekeep
      37. Hacking Tools Hardware
      38. How To Make Hacking Tools
      39. Best Hacking Tools 2019
      40. Hacking Tools For Beginners
      41. Pentest Tools Find Subdomains
      42. Hack Tools Download
      43. Tools 4 Hack
      44. Hacking Tools Usb
      45. Blackhat Hacker Tools
      46. Pentest Tools Url Fuzzer
      47. Physical Pentest Tools
      48. Pentest Automation Tools
      49. Hack Tools For Games
      50. Hackers Toolbox
      51. Pentest Tools
      52. Install Pentest Tools Ubuntu
      53. Hack Tools Mac
      54. Pentest Tools
      55. Hacker Techniques Tools And Incident Handling
      56. Hack Apps
      57. Hacking Tools Windows
      58. Hacker Tools
      59. Hacker Tools Apk Download
      60. Termux Hacking Tools 2019
      61. Pentest Recon Tools
      62. Pentest Tools Bluekeep
      63. Pentest Tools List
      64. Free Pentest Tools For Windows
      65. Hacker Tools For Ios
      66. Hacking Tools For Windows
      67. Hacker Tools Mac
      68. Hack Rom Tools
      69. Computer Hacker
      70. Pentest Tools For Ubuntu
      71. Pentest Tools Port Scanner
      72. Pentest Tools Android
      73. Hacking Tools Online
      74. Hacking Tools 2020
      75. Hack Tools For Games
      76. Pentest Tools Download
      77. Hack Tools
      78. Blackhat Hacker Tools
      79. Hacker Tools 2020
      80. Hacking Tools For Beginners
      81. Hacking Tools Kit
      82. How To Make Hacking Tools
      83. Hacker Tools Apk
      84. Hack Tools For Pc
      85. Tools 4 Hack
      86. Pentest Recon Tools
      87. Install Pentest Tools Ubuntu
      88. Hack Tool Apk No Root
      89. Physical Pentest Tools
      90. Hacker Security Tools
      91. Hacking Tools For Windows 7
      92. Hacking Tools Software
      93. Install Pentest Tools Ubuntu
      94. Wifi Hacker Tools For Windows
      95. Beginner Hacker Tools
      96. Pentest Reporting Tools
      97. New Hacker Tools
      98. Hack Tools 2019
      99. Hack Website Online Tool
      100. Hacking Tools For Windows
      101. Growth Hacker Tools
      102. Pentest Tools Website
      103. How To Install Pentest Tools In Ubuntu
      104. Hacker Tools 2019
      105. Hack Tools For Mac
      106. Growth Hacker Tools
      107. Pentest Tools Open Source
      108. Game Hacking
      109. Pentest Tools Bluekeep
      110. Hacker Tools Mac
      111. Hacker Tools Online
      112. Hacker Tool Kit
      113. Install Pentest Tools Ubuntu
      114. Hacking Tools For Kali Linux
      115. Pentest Tools Download
      116. Hacker Tool Kit
      117. Hacker Security Tools
      118. Hacking Tools 2019
      119. Kik Hack Tools
      120. Pentest Tools Nmap
      121. Hacking Tools Download
      122. Hacking Tools Windows 10
      123. Kik Hack Tools
      124. Hacking App
      125. Pentest Tools Tcp Port Scanner
      126. Nsa Hack Tools Download
      127. Hack Apps
      128. Kik Hack Tools
      129. Hacking Tools 2020
      130. Hack And Tools
      131. Pentest Tools Online
      132. Hacking Tools For Windows 7
      133. Pentest Tools Website Vulnerability
      134. Pentest Tools Website
      135. Easy Hack Tools
      136. Hacker Tools Software
      137. Pentest Tools Bluekeep
      138. Pentest Tools Windows
      139. Pentest Tools Find Subdomains
      140. Pentest Tools For Mac
      141. Hacker Tools For Ios
      142. Pentest Tools Framework
      143. Hacking Tools Windows 10
      144. Hack Tools
      145. What Is Hacking Tools
      146. Pentest Tools Windows
      147. Hack Tool Apk
      148. Pentest Tools Online
      149. Hack Tools Online
      150. Hacker Tools Apk Download

      BYOPPP - Build Your Own Privacy Protection Proxy

      I have read a blog post, where you can build your own privacy proxy server built on Raspberry PI. The post got me thinking about how I can use this to protect my privacy on my Android phone, and also get rid of those annoying ads. 

      Since I own a Samsung Galaxy S3 LTE with Android 4.3 (with a HW based Knox counter), rooting the phone now means you break Knox, and loose warranty. Past the point of no return ...

      This means I have to solve this without root. Luckily newer Androids support VPN without rooting, but setting a mandatory system-wide proxy is still not possible without root. 
      But thanks to some iptables magic and Privoxy, this is not a problem anymore :) 

      The ingredients to build your own privacy protection proxy:
      • One (or more) cheap VPS server(s)
      • a decent VPN program
      • Privoxy
      • iptables

      VPS server

      To get the cheap VPS server, I recommend using Amazon EC2, but choose whatever you like. The micro instance is very cheap (or even free), and has totally enough resources for this task. I'm using the Ubuntu free tier now and it works like a charm. And last but not least Amazon has two-factor authentication! You can set up an Ubuntu server under 10 minutes. Use the AWS region nearest to you, e.g. I choose EU - Ireland.



      VPN

      For the VPN program, I recommend the free version of the OpenVPN AS (EDIT: be sure to use OpenVPN AS 2.0.6 or later, both on the server and the client). Easy to set-up quick start guide is here, GUI based configuration, and one-click client installer for Android, iOS, Windows, Linux, OSX. The Ubuntu installer packages are here.




      The most important settings:

      • I prefer to use the TCP 443 and UDP 53 ports for my OpenVPN setup, and let the user guess why. 
      • For good performance, UDP is preferred over TCP. 
      • VPN mode is Layer 3 (routing/NAT).
      • Don't forget to allow the configured VPN ports in the AWS firewall (security groups). 


      Other VPN settings:
      • Should VPN clients have access to private subnets (non-public networks on the server side)? - Yes
      • Should client Internet traffic be routed through the VPN? - Yes

      Privoxy

      The next component we have to install and configure is Privoxy. As usual, "apt-get install privoxy" just works. The next step is to configure privoxy via /etc/privoxy/config file, there are two options to change:
      • listen-address your.ip.add.ress:8118
      • accept-intercepted-requests 1
      Beware not to allow everyone accessing your Privoxy server in the AWS EC2 security groups, be sure it is reachable only to VPN users!

      After everything is set, start privoxy with "service privoxy start", and add it to the autostart "update-rc.d privoxy defaults".

      Iptables

      And the final step is to configure your iptables chain to forward every web traffic from the VPN clients to the Privoxy server:

      iptables -t nat -A PREROUTING -s 5.5.0.0/16 -p tcp -m multiport --dports 80,8080,81 -j DNAT --to-destination your.ip.add.ress:8118 

      Optionally you can block access to all other ports as well, and what does not go through your Privoxy won't be reachable.
      Based on your Linux distribution and preference, you might make this rule persistent.

      Final test

      Now you can connect to the VPN server from your Android device.
      After logging in from a client, you get the following nice packages to install on your device:


      After connecting, the final results can be seen in the following screenshots. And yes, there is a reason I chose Angry Birds as an example.

      Angry Birds without Privoxy
      Angry Birds with Privoxy
      Stupid flashlight app with ad
      Stupid flashlight app with Privoxy
      Spoiler alert
      If you are afraid of NSA tracking you, this post is not for you. If you want to achieve IP layer anonymity, this post is not for you. As long as you are the only one using that service, it should be trivial to see what could possibly go wrong with that.

      Known issues
      Whenever the Internet connection (Wifi, 3G) drops, the VPN connection drops as well, and your privacy is gone ...
      Sites breaking your privacy through SSL can still do that as long as the domain is not in the Privoxy blacklist.

      Additional recommendation
      If you are using OSX or Windows, I can recommend Aviator to be used as your default browser. It is just great, give it a try!

      PS: There are also some adblock apps removed from the official store which can block some ads, but you have to configure a proxy for every WiFi connection you use, and it is not working over 3G.



      More information