Has anyone done an nmap scan of the PS5 to determine which OS family (e.g. BSD, Linux) it runs? reddit / BSD ---------------------------------------------------------------------- dd3fb353b512fe99f954 · 2020-11-15 09:00 It's unlikely that it's Linux because the GPL would require them to publish more source than they're comfortable with. You can see everything Sony must publish here https://doc.dl.playstation.net/doc/ps5-oss/ ---------------------------------------------------------------------- Calkhas · 2020-11-15 10:21 nmap is going to tell you what ports are open, and perhaps what services are running. It won’t tell you the basis of the operating system. ---------------------------------------------------------------------- junon_armory · 2020-11-15 11:08 Nmap can do OS detection. Nmap -O ---------------------------------------------------------------------- vabruce · 2020-11-15 12:01 Previous generations of the Playstation used Orbis OS, a fork of FreeBSD. ---------------------------------------------------------------------- agentdrek · 2020-11-15 12:31 Will report back once I have it ... come on Purolator! I would guess yes because of the backwards support. ---------------------------------------------------------------------- LiberalMasochist · 2020-11-15 13:14 Easily mitigated via sysctl.conf settings tho, incase yourself or Op aren't aware. It's still reasonably accurate at guessing even with hardening tho. ---------------------------------------------------------------------- __TBD · 2020-11-15 13:59 So what the results? I don't have ps5 to check. Unless someone want to buy me one ---------------------------------------------------------------------- daemonpenguin · 2020-11-15 14:12 The premise is completely flawed. This part makes no sense to anyone who does software development: "Since the only way to get PS4 games to run natively on the PS5 is to literally port them, AND FreeBSD is (generally speaking) a "write once, run forever" OS, it stands to reason that Sony switched OS bases." That's not how these things work. Both PS4 and 5 could be running FreeBSD while using incompatible, PS-specific libraries on top. If Sony switched libraries or rewrote their userland or made incompatible changes to their existing userland libraries it would prevent any PS4 games from running on PS5. This has nothing to do with the underlying OS. PS4 games don't make low-level FreeBSD system calls sothe underlying OS and kernel has no impact on whether PS4 games run on the PS5. ---------------------------------------------------------------------- [deleted] · 2020-11-15 16:10 [deleted] ---------------------------------------------------------------------- [deleted] · 2020-11-15 17:28 [deleted] ---------------------------------------------------------------------- shawn_webb · 2020-11-15 17:50 It's somewhat easy to fool nmap's OS detection just by changing some basic `sysctl` nodes. On my HardenedBSD system (HardenedBSD is a downstream derivative of FreeBSD): ``` $ sudo nmap -O localhost Password: Starting Nmap 7.91 ( https://nmap.org ) at 2020-11-15 12:47 EST sendto in send_ip_packet_sd: sendto(4, packet, 60, 0, 127.0.0.1, 16) => Permission denied Offending packet: TCP 127.0.0.1:60565 > 127.0.0.1:22 SFPU ttl=40 id=20548 iplen=60 seq=1781853260 win=256 sendto in send_ip_packet_sd: sendto(4, packet, 60, 0, 127.0.0.1, 16) => Permission denied Offending packet: TCP 127.0.0.1:60565 > 127.0.0.1:22 SFPU ttl=39 id=52303 iplen=60 seq=1781853260 win=256 sendto in send_ip_packet_sd: sendto(4, packet, 60, 0, 127.0.0.1, 16) => Permission denied Offending packet: TCP 127.0.0.1:60565 > 127.0.0.1:22 SFPU ttl=44 id=49199 iplen=60 seq=1781853260 win=256 sendto in send_ip_packet_sd: sendto(4, packet, 60, 0, 127.0.0.1, 16) => Permission denied Offending packet: TCP 127.0.0.1:60565 > 127.0.0.1:22 SFPU ttl=43 id=55064 iplen=60 seq=1781853260 win=256 sendto in send_ip_packet_sd: sendto(4, packet, 60, 0, 127.0.0.1, 16) => Permission denied Offending packet: TCP 127.0.0.1:60565 > 127.0.0.1:22 SFPU ttl=43 id=35898 iplen=60 seq=471660565 win=256 sendto in send_ip_packet_sd: sendto(4, packet, 60, 0, 127.0.0.1, 16) => Permission denied Offending packet: TCP 127.0.0.1:60565 > 127.0.0.1:22 SFPU ttl=52 id=24039 iplen=60 seq=471660565 win=256 sendto in send_ip_packet_sd: sendto(4, packet, 60, 0, 127.0.0.1, 16) => Permission denied Offending packet: TCP 127.0.0.1:60565 > 127.0.0.1:22 SFPU ttl=46 id=24094 iplen=60 seq=471660565 win=256 sendto in send_ip_packet_sd: sendto(4, packet, 60, 0, 127.0.0.1, 16) => Permission denied Offending packet: TCP 127.0.0.1:60565 > 127.0.0.1:22 SFPU ttl=43 id=32137 iplen=60 seq=471660565 win=256 sendto in send_ip_packet_sd: sendto(4, packet, 60, 0, 127.0.0.1, 16) => Permission denied Offending packet: TCP 127.0.0.1:60565 > 127.0.0.1:22 SFPU ttl=37 id=63151 iplen=60 seq=2324123648 win=256 sendto in send_ip_packet_sd: sendto(4, packet, 60, 0, 127.0.0.1, 16) => Permission denied Offending packet: TCP 127.0.0.1:60565 > 127.0.0.1:22 SFPU ttl=40 id=54160 iplen=60 seq=2324123648 win=256 Omitting future Sendto error messages now that 10 have been shown. Use -d2 if you really want to see them. Nmap scan report for localhost (127.0.0.1) Host is up (0.000059s latency). Other addresses for localhost (not scanned): ::1 Not shown: 997 closed ports PORT STATE SERVICE 22/tcp open ssh 5900/tcp open vnc 8333/tcp open bitcoin No exact OS matches for host (If you know what OS is running on it, see https://nmap.org/submit/ ). TCP/IP fingerprint: OS:SCAN(V=7.91%E=4%D=11/15%OT=22%CT=1%CU=30705%PV=N%DS=0%DC=L%G=Y%TM=5 FB169 OS:CC%P=amd64-portbld- freebsd13.0)SEQ(SP=107%GCD=1%ISR=10B%TI=Z%CI=Z%II=RI% OS:TS=22)OPS(O1=M3FD8NW6ST11%O2=M3FD8NW6ST11%O3=M3FD8NW6NNT11%O4=M3FD8 NW6ST OS:11%O5=M3FD8NW6ST11%O6=M3FD8ST11)WIN(W1=FFFF%W2=FFFF%W3=FFFF%W4=FFFF %W5=F OS:FFF%W6=FFFF)ECN(R=Y%DF=Y%T=40%W=FFFF%O=M3FD8NW6SLL%CC=Y%Q=)T1(R=Y%D F=Y%T OS:=40%S=O%A=S+%F=AS%RD=0%Q=)T2(R=N)T3(R=N)T4(R=Y%DF=Y%T=40%W=0%S=A%A= Z%F=R OS:%O=%RD=0%Q=)T5(R=Y%DF=Y%T=40%W=0%S=Z%A=S+%F=AR%O=%RD=0%Q=)T6(R=Y%DF =Y%T= OS:40%W=0%S=A%A=Z%F=R%O=%RD=0%Q=)T7(R=N)U1(R=Y%DF=N%T=40%IPL=38%UN=0%R IPL=G OS:%RID=G%RIPCK=Z%RUCK=G%RUD=G)IE(R=Y%DFI=S%T=40%CD=S) Network Distance: 0 hops OS detection performed. Please report any incorrect results at https://nmap.org/submit/ . Nmap done: 1 IP address (1 host up) scanned in 18.88 seconds ``` ---------------------------------------------------------------------- backtickbot · 2020-11-15 17:50 [Correctly formatted](https://reddit.com/r/backtickbot/comments/jupza1 /httpsredditcomrbsdcommentsjugmlfhas_anyone_done/) Hello, shawn\_webb. Just a quick heads up! It seems that you have attempted to use triple backticks (\`\`\`) for your codeblock/monospace text block. **This isn't universally supported on reddit**, for some users your comment will look not as intended. You can avoid this by **indenting every line with 4 spaces instead**. There are also other methods that offer a bit better compatability like [the "codeblock" format feature on new Reddit](https://stalas.alm.lt/files/new-reddit-codeblock.png). Tip: in new reddit, changing to "fancy-pants" editor and changing back to "markdown" will reformat correctly! However, that may be unnaceptable to you. Have a good day, shawn\_webb. ^(You can opt out by replying with "backtickopt6" to this comment. Configure to send allerts to PMs instead by replying with "backtickbbotdm5". Exit PMMode by sending "dmmode_end".) ---------------------------------------------------------------------- monotux · 2020-11-15 18:30 Good bot ---------------------------------------------------------------------- B0tRank · 2020-11-15 18:30 Thank you, monotux, for voting on backtickbot. This bot wants to find the best and worst bots on Reddit. [You can view results here](https://botrank.pastimes.eu/). *** ^(Even if I don't reply to your comment, I'm still listening for votes. Check the webpage to see if your vote registered!) ---------------------------------------------------------------------- jdrch · 2020-11-15 21:40 > would require them to publish more source than they're comfortable with. Not necessarily. Android OEMs publish kernels without the code behind binary blobs necessary to make the phone components actually work all the time. > You can see everything Sony must publish here > https://doc.dl.playstation.net/doc/ps5-oss/ TIL, thanks! ---------------------------------------------------------------------- jdrch · 2020-11-15 21:42 > Easily mitigated via sysctl.conf OEMs don't have much incentive to fool `nmap`. Obscurity != security, and they risk making their products much more difficult to troubleshoot in the field.^1 ^1 Apple seems not to be concerned with that issue, but I daresay they're a rare exception. ---------------------------------------------------------------------- jdrch · 2020-11-15 21:43 > Will report back once I have it Thanks, see updated OP. ---------------------------------------------------------------------- jdrch · 2020-11-15 21:43 > So what the results? In updated OP. ---------------------------------------------------------------------- jdrch · 2020-11-15 21:43 > I'm sure it's *BSD again. Just like the previous one. It is. See updated OP. ---------------------------------------------------------------------- jdrch · 2020-11-15 21:44 > It's somewhat easy to fool nmap's OS detection [See here](https://www.reddit.com/r/BSD/comments/jugmlf/has_anyone_don e_an_nmap_scan_of_the_ps5_to/gcfgj7p/?utm_source=reddit&utm_medium=web 2x&context=3). ---------------------------------------------------------------------- jdrch · 2020-11-15 21:44 > You can avoid this by > indenting every line with 4 spaces instead > . Or clients can just be updated to support backticks ... ---------------------------------------------------------------------- BumpitySnook · 2020-11-15 23:18 It's a rough heuristic and could easily be mistaken if Sony made minor changes to the network stack. ---------------------------------------------------------------------- masta · 2020-11-16 00:24 >Not necessarily. Android OEMs publish kernels without the code behind binary blobs necessary to make the phone components actually work all the time. What's your point? Are you suggesting Sony would successfully repel a gpl license violation in a north America or European court of law, or in Japan for that matter? It's one thing for Chinese phones manufactured in the PRC, but an entirely different things for Sony with international operations. This is a great example of false equivalent fallacy. ---------------------------------------------------------------------- deaddodo · 2020-11-16 01:34 Also, I don't see why they would drop Orbis when it literally fits all their needs: * Doesn't require a source release * Runs on the current architecture * Has a full suite of libraries focused on game development * Has already been developed and optimized for their needs * They fully own ---------------------------------------------------------------------- jdrch · 2020-11-16 04:13 > Are you suggesting Sony would successfully repel a gpl license violation No, I'm saying you can remain compliant with the GPL by booting a kernel that has been merely ported to your SoC, and then having that kernel load closed source drivers for the rest of the hardware during bootup. Android OEMs - including Sony for their Xperia line!!! - do it legally so Sony would be able to do so too. > an entirely different things for Sony with international operations Buddy every Android OEM (except maybe Google) from Samsung to Motorola to Nokia to LG does what I described. It's totally compliant with the GPL because the binary blob drivers don't live in the kernel, and the Linux GPL covers the kernel only. ---------------------------------------------------------------------- LiberalMasochist · 2020-11-22 19:53 Err, sorry but obscurity is a layer of security. Security is based on many layers. Setup a VPS with default ssh port open, then one with non default port. You will see a massive difference in attacks on that port for example. If you can't easily identify the OS version it will take longer to research and perform an attack. ---------------------------------------------------------------------- jdrch · 2020-11-23 05:47 > obscurity is a layer of security By this reasoning, open source software isn't secure because you can read all the code ... anyway thankfully it certainly appears Sony doesn't subscribe to that school of thought. ---------------------------------------------------------------------- LiberalMasochist · 2020-11-23 09:56 You're joking right? You think open source software is less secure because you can see all the code, check for no back doors or other nasty stuff? Sorry dude but I would recommend picking up some good books. 'Practical Unix and Internet security' by Simson Garfinkle is a great foundation. Your point is irrelevant anyway as compiled software can be easily decompiled or deobfusicated. I recommend also you learn x86 assembly as a foundation if you want to become more than 'a little knowledge is more dangerous than none' types. Apologies if my post sounds rude, I'm just the blunt type. ---------------------------------------------------------------------- jdrch · 2020-11-23 17:11 > You think open source software is less secure That's not what I said. I said that the *belief* that obscurity = security also includes the belief that open source from being secure, since open source is by definition not obscure. I then said that clearly Sony doesn't believe obscurity = security because they chose an open source base for their console OS. ---------------------------------------------------------------------- omegaenfobla · 2021-12-22 06:21 Parent comment also said it is just a layer of many which means it shouldn't be solely relied on. Open source isn't secure if there aren't people reviewing it. Yes, that doesn't help Sony's case even with their reasons to keep it closed source given their popularity, but open source is not infallible regardless. They still benefit from slowing down people trying to crack it such as obscuring nmap, but other examples of them doing this and showing that they have demonstrated obscuring is not listing Freebsd kernel and several other licenses in their oss page. Just look at ps4 open source page compared to ps5. This is clearly to slow crackers down. https://doc.dl.playstation.net/doc/ps4-oss/index.html https://doc.dl.playstation.net/doc/ps5-oss/index.html