start	end	text
0	7780	Even though we're not at 4 o'clock right now, doors have closed, so I'm going to make the executive decision that we can start, okay?
7860	9200	So, you go first.
9200	9940	You're the first.
9940	17900	Yeah, so today we're going to be talking about a method that we developed for NMEA 2000 fingerprinting.
17940	20760	So really quick, I'll do some introductions.
20860	22580	My name's Dean, this is Anissa.
22580	34080	I am a PhD candidate at the University of Rhode Island, where I'm in the cyber-physical systems lab, and I am a prior commercial mariner.
34080	36380	I worked on ships for about seven years in New York City.
36380	38260	I went to the United States Merchant Marine Academy.
39000	48620	I was there, I joined the cyber team, so I was at least aware of, you know, bits and bytes, nibbles, I think that was the joke.
48620	54320	It was 2002 to 2006, so ESX was a thing for the first time.
54320	62520	We did the NSA cyber-defense exercise, and we were the ones that made the rule that you can't just restore from a snapshot.
62520	66860	That was our main cyber-security strategy, restore from snapshot.
66920	76400	So after that, I worked in defense contracting, where I ran classified information systems, and now I'm currently the chief information security officer at Dispel.
76400	79660	We do secure remote access for industrial control systems.
79660	83540	So that's my day job, and night job is URI.
83960	88720	And night-night job is, I'm a reservist with the United States Navy, with U.S.
88720	90720	Forces Korea as a IP officer.
90720	94500	So I keep myself pretty busy sometimes.
94500	95620	I would say too busy.
95620	98980	Yeah, and I'll pass it over for Anissa to introduce herself.
98980	101020	So my name is Anissa.
101260	102380	You can see the joke.
102680	104060	It's supposed to be funny.
104060	105020	Yeah, there we go.
105040	106280	Can we get a laugh, please?
106280	108280	All right.
108280	111160	This is my LinkedIn picture too, if anybody wants to add me.
111160	112900	So my name is Anissa Elias.
112900	114580	I am, like I said, from Rhode Island.
114580	121140	I work for a now medium-sized company in maritime security called Right Solutions.
121740	126160	Over there, I'm a software, actually a software research engineer.
126160	128160	I'm also a PhD candidate with Dean.
128160	129460	I don't know if you mentioned that.
129460	133800	We have recently become candidates, which is a big deal in PhD world.
134360	141480	And I work with Dean at the Cypher Center at URI under the same advisor.
142320	152860	And Professor Yan Sun, who we have to thank for her support in this project and doing the research under the Office of Naval Research.
152860	153240	Yeah.
153240	162460	So this research was supported by ONR, so the Office of Naval Research, under a grant that I think I have at the end.
162460	164960	So we can shout them out at the end too.
164960	173980	So James Campbell helped me on, and he's here in the front row, on a project that we did for DEFCON 29.
174180	175600	Who was at DEFCON 29?
175600	176560	Safe mode.
176760	177740	A couple there.
178040	179860	And what we called it was OpenBridge.
179860	184740	And at the time, I was teaching as a lecturer at the United States Coast Guard Academy.
184740	191440	And we had a problem where we wanted to teach about maritime industrial control protocols, but we only had one trainer bus.
191440	193620	If you went to the demo lab, it was the same thing.
193620	197500	Plug in, do your thing, unplug, go do something, plug in.
197720	202540	So we want to address that problem because the same problems exist now as they did then.
202540	211000	But we made OpenBridge project, and we really want to make learning about this protocol a little bit easier.
211100	212640	It is based on Canvas.
212640	214500	We'll talk a little bit more about that.
214500	224760	But yeah, our goals were to just make it more attainable, easier, cheaper, and kind of accelerate the learning process without needing to buy a boat.
225120	228300	Not needing to buy a GPS head unit.
229180	235480	So really quickly, NMEA-2000 stands for the National Marine Electronics Association.
235720	244720	They have a protocol, NMEA-183, which is known for AIS, but it's also used for lots of other things.
244720	252140	And NMEA-2000 is used for bus protocol, bus communications on a ship.
252140	252800	Let's see what else.
252800	257620	It's based on the ISO 11783 standard.
257720	260600	It is compatible with the SAE standard, which is cars.
260600	267460	So you could, I guess, conceivably put your GPS head unit in your car and have them not overlap and fight each other.
267480	275560	This is accomplished because it uses the Canvas extended header to essentially derive a parameter group number.
275560	277080	We'll talk more about that.
277940	280600	A lot of our research... I'm not talking about that yet, though.
280600	282340	I'm going to talk about the research later.
282940	286120	You guys know that Canvas uses two wires for CAM high, CAM low.
286120	289880	It has a dominant and a recessive bit structure.
290000	293560	It's pretty much leveled off by two resistors on the end.
293560	295840	And this is going to get important later on.
295840	305400	But really understanding that the CAM interface is kind of still the Wild West, as we've learned in Car Hacking Village and other places.
305460	307000	It's not authenticated.
307040	309800	It is built into almost everything.
309800	317380	My excavator uses the same CAM protocol, same standard as, you know, NEMEA 2000.
317380	321360	Again, I could probably put my GPS head unit in my excavator, right?
322380	323800	So let's go to the next.
323800	326220	This is kind of a default bus.
326220	327960	We pulled off the internet.
328120	330560	You have to power the bus with 12 volts.
330560	334640	Usually you'll have various different sensors along this lower line, which is a backbone.
334640	338660	We talked about those two resistors on the terminator ends.
338660	342140	And then everything on the bus talks and listens.
342140	348060	We talked a little bit about that at our last demo, which we had unfortunately before this.
348060	350520	So I couldn't promote it at the talk.
350520	361080	But if you want to come back down to the Maritime Hacking Village, I'd be happy to revisit the demo and get you guys collecting some data on your computer so you can play around with it.
361560	372280	We had Chad GPT, the GPDs, put together this drawing, which is horrendously not correct of our actual test environment.
372280	377940	So this is something you can go downstairs at the Maritime Hacking Village and see now.
378200	380380	James is supposed to be guarding it.
381320	384300	James is supposed to be guarding it.
384860	394960	But it includes a wind sensor, weather station, Airmar, a Maritron head unit, and a Garmin chart plotter.
394960	396560	I can't remember the model number.
396920	401700	And then since DEFCON 29, really nothing has changed.
401700	403460	Head units are still expensive.
403460	405760	Like you're not going to buy two of them and break one.
406300	407580	Radars are still expensive.
407580	409960	These sensors are hundreds and hundreds of dollars.
409960	413760	So the problem still remains that there's not a lot of published research on this.
413760	418980	There's not a lot of people that are spending a lot of time in the EMEA 2000 world.
418980	425540	There are a lot of leaders in the area that make training platforms, like Fathom 5 makes a great training platform.
425540	429960	There's a training platform by Penn State down in the Maritime Hacking Village.
429960	431940	But it's a one-time thing.
431940	441580	And what we wanted to start thinking about is how can we determine what's normal on a bus network like this?
441580	447500	How can we determine what's normal so we can then start determining what's abnormal later?
447500	455180	And that's what Anissa is going to start talking about, the method that we developed to deterministically fingerprint an EMEA 2000 network.
455180	457860	And then we can come back and talk about what's next from that.
457860	458780	Yeah, for sure.
458800	461340	And I just want to add on to the point.
462180	463560	Do you want me to stand behind you?
463560	464460	So I can talk to you.
465540	470520	As academics, so Dean and I are both in a PhD program.
470520	481220	So in academia, it's really difficult to do research on such an important topic if there's not a lot of open source datasets available for you to do research on.
481220	485360	So I'm just going to introduce our system architecture generally.
485380	489160	So like Dean said, what we had to first start with is data.
489160	497080	So Dean, back when he was in the Coast Guard, actually set up the physical system, which consists of three devices and actually five nodes.
497100	503180	And so what we started doing was it took that physical system that actually cost a lot of money, I think.
503180	506080	I don't know what the bomb is, but...
506080	507580	James is watching it right now.
509620	513180	And we have that physical system available to us at our lab.
513180	515580	We hook it up to a interface device.
515580	518480	So we use a logic analyzer.
518740	532000	We use the salie to collect can frames to collect a lot of data to do our actual research on to create a baseline of our system to then fingerprint and make open source or publicly available.
532020	536300	So the biggest part that I'll be talking about is actually our software analysis stack.
536300	541600	So that consists of one database with multiple tables.
541600	543900	We have databases for our system.
543900	547800	So what the baseline known PGNs that are available out there.
547800	559300	Actually, we talked about this in our workshop, but you can only access PGNs and what they mean if you kind of sign up for a NMEA specific... I don't know, how would you say?
559300	563200	A member of the association to get the standard.
563200	566980	And not every PGN is documented in the standard.
567080	580080	So we were talking about this at the workshop and we could collect PGNs that are proprietary PGNs, but proprietary PGNs are between the NMEA standard organization and the manufacturer.
580080	596240	So if I made Dean depth sounders and say Dean head units, I could use the head unit to configure the depth sounder to tell it how far it is away from the keel, or the Dean temperature sensor, or the Dean tank level flow meter, or whatever.
596540	603300	So that that could then put on the bus that information that another device could consume or do something with.
603300	611880	The problem with that, I think, is that if you don't know what they are and they're running around in the bus, you could be reconfiguring without knowing it.
611960	615960	The measurement for the depth under your keel could be a problem.
616240	620020	Rudder angle indicator could be a problem.
620140	627220	When you have boats that are running into bridges and into the Suez Canal.
628020	630680	So anyway...
631800	635380	Yeah, but also the most important part is it's not available for people, right?
635380	638740	You can't just go online and find it and do something for yourself.
638740	644120	So what we wanted to do is get that and actually have it be publicly available for people to kind of search.
644220	649980	If they get a PGN number, you go in and search and you can know more about whatever system that you're working with.
649980	657520	We also have a table of PGN traffic, so frequency of the devices that are on our network.
657520	659700	And then they all come together on our dashboard.
659700	662060	We use everything to actually fingerprint our network.
662060	664120	And we'll talk about that in a little bit.
664120	671440	So if we go step by step, first thing we have to do is set up our system, set up our logic analyzer and get the frame.
671440	677240	So this is what a regular frame shot from a CAN bus would look like.
677240	679020	There's CAN high, CAN low.
680060	683460	Dean can talk more about it, but if time permits.
683700	689580	You go from there, you get into, you take that CAN frame and you make it into a binary.
689580	694420	So this is what a usual PGN binary looks like.
694420	698120	So our NMEA 2000 data frame in binary looks like.
698120	703420	What we want is to extract the important parts, which make up our PGNs.
703420	706240	And because I didn't have them on the slides, I wrote them down.
706240	708020	R, PGN first.
708020	710000	R is the reserve bit.
710020	712000	DP is the data page bit.
712280	716200	PDU or PD is the PDU field bit.
716200	718740	And then PS is the PDU specific bit.
718740	719600	Yes.
719700	728080	And we take all of those and then we put it into a file or a pipeline that I made and hopefully we'll publish as a library soon.
728160	736000	And that will give you a PGN that you can then look up and you can actually know what the frame message says.
736340	742180	And similarly, we get the source address, which is just SA, which means source address.
742180	746040	And that gives you information about the device transmitting that specific frame.
746220	750180	And so Dean told me I have to put memes in this talk.
750180	754840	So he doesn't know this meme, but this is very popular for younger folks on TikTok.
754900	758420	But I was able to do... I don't.
758660	761620	He doesn't know any of the memes I put in here, but... I've never seen the show.
761620	762100	Yeah.
762100	763020	It's really good.
763020	763920	It's about a cook, I think.
763920	764540	Yeah.
764540	775260	So it is a very difficult process to go from cam frame to an actual PGN that you know what the message says.
775260	786880	So what I like to kind of go over this process, I made a library that will go live hopefully on our Github page, OpenBridge, that takes cam frames to binary bits to readable messages.
786880	790680	And then we'll go over what that is right now.
790680	793880	So once we get our cam frame and once we get it into a...
793880	800080	that looks something like this, the raw cam frame, we are interested in the header.
800080	804060	So the header is presented to us in hexadecimal format.
804060	807480	We take that header, we get it into binary format.
807660	818120	We then take what we decided was the important parts that make up a PGN, which is again reserve bit, data page bit, PDU field bit, and PDU specific bit.
818120	821460	And then that comprises of our PGNs.
821460	830700	And so we clean up that binary combination, we bit flip the PS, only if it's above 240.
831160	838060	And then you get a PGN decimal that you can then go to our database that we made and actually know what that message says.
838060	840420	And we do something very similar to source address.
840420	845840	It's a lot simpler, but it's also included in the package or software stack that we made.
845840	854320	And you get a source address and that can be linked to the device that sent the specific PGN.
854320	864920	And so all in all in our database, what we really want to know, the most important part of this is understanding the topological behavior of our physical system.
864920	877040	So number one is we needed to get a device inventory database that we got through the cam frames, through a very specific PGN, I believe 12699, if I'm not mistaken, and the source address.
877040	880380	We take that, it gives us the information about what the device is.
880380	884880	We can put that in our table or our device inventory database and get that.
884880	890200	And then second most important is where we get to the behavior of our network.
890200	895620	So PGN frequency is something that we calculate whenever the devices are talking on the CAN bus.
895620	901800	So we essentially just calculate the frequency of PGNs being sent from every device.
901820	904420	We only calculate obviously unique PGNs.
904420	916240	And then if you have two devices sending the same PGNs, which happens pretty frequently, those PGNs linked to that device comprises of a unique, another unique PGN.
916240	919400	So we have a PGN device combination.
919640	927060	And we calculate the average frequency that gives us insight into the behavior of our network and the behavior of our devices.
927260	938640	And then lastly, we just get or have the PGN database that just comprises of every single PGN that was sent over our network for us as users to kind of know about.
938940	947820	And so with all of that done, we actually made mathematical representations of things, which makes us feel like real academics too.
948160	950880	So when fingerprinting a network, right?
950880	953960	So why do we want to fingerprint a network, right?
953960	966920	And Dean kind of touched up on this a little bit in the beginning, but there's really no way right now that's at least available to us where we can use to baseline a NMEA-2000 network.
966920	985980	So what we wanted to propose is a deterministic approach to this and create a deterministic fingerprint technique that again, takes the topological information or the topological and behavioral knowledge of our network, because every network is going to be unique.
986020	993240	Take those two, combine them and then tell us when something is deviated from the baseline.
993240	998660	And so what our equation variables are, what is the important parts is the devices.
998660	1001160	Again, device inventory is really, really important.
1001160	1008460	We have our set of devices that are known by the user also known by whoever is going to be using what we have.
1008460	1012940	We also have the set of known PGNs specifically sent by device D.
1012940	1024160	So P of D is, again, let's say we have PGN1, device 1 and device 2 can send PGN1, but those sent by different devices will be added as unique PGNs.
1024160	1030660	And then the average frequency of messages permanent at which device D will send PGN P of D.
1030720	1040020	And that gets us to our actual fingerprinting equation, and we have a real equation, which this guy didn't think I could do, but we got it done.
1040780	1045620	And so we have our F, which is our deterministic fingerprint of the network.
1045680	1061040	We have the important bits, which is D belongs to the set of devices bigger D, and then P belongs to the set of known PGNs P of D, and then the expected frequency versus what we are getting right now.
1061040	1072340	So the way we use this equation is you have the baseline every time a PGN is being sent, you take all of that information, you see what device is sending it, you ask, is it already on the network?
1072340	1074820	You see if the PGN, is this a known PGN?
1074820	1077820	Is this a PGN that is sent from a known device?
1077820	1079780	Has this device ever sent it before?
1079780	1084580	And then if this is all okay, has there been a frequency change?
1084580	1088520	And that any of that happening will cause a alert to happen.
1088520	1092920	And we can see it on the dashboard that we created.
1092920	1094460	I don't know, can you see this?
1094460	1096320	Yeah, I think you can see this pretty well.
1097060	1099480	So I'm going to play the video.
1099480	1106920	I kind of have this set up, but so in our dashboard, we kind of just had the most important parts.
1106920	1109920	So first is the physical representation.
1110000	1118620	I can, I just realized you can't see my mouse moving, but if you can So system map right here tells us what we actually know is on the system.
1118620	1120720	So this is what our physical system looks like.
1120720	1128680	Again, once you go downstairs, do give us a rating of how well ChatGPT did when it redrew our system.
1128680	1131040	We have our device inventory right there.
1131040	1134720	So again, we only have three known devices that we are okay with.
1134720	1140300	We have a PGN frequency, so average frequency of each PGN coming from specific device.
1140300	1146140	And then at the bottom is our PGN monitoring, which is every PGN that we got from a run.
1146240	1153340	Okay, so we have this updates, we have a baseline, let's say another run happens.
1153340	1158120	Okay, and let's say you did an analysis, just for the purposes of the demo, we're not going to do this live.
1158120	1160260	But we did an analysis of a new run.
1160260	1165480	And there were a few bad things that came up when using our fingerprint.
1165480	1172960	So what we developed here is, it tells us the total of new PGN and device combinations.
1173740	1179680	It tells us all new PGNs found, any frequency alerts and any devices.
1179680	1187600	So in unknown devices, most important, I don't think you want to have any device that you don't know on your network, because that is not good.
1187600	1196140	And so if your devices, if it's a new device, it gets added here, it also tells you what type of PGNs were sent from this specific device.
1196140	1205360	And if you knew this, or if we've seen this PGN prior from a different device, we then get just a list of all new PGNs, let me just speed through this.
1205440	1210860	And then we get to what I like the most, which is frequency anomalies, right?
1210860	1228380	So you get the PGN source address, which tells you the device information, the current frequency that was measured, and then the baseline frequency, and we get a percentage of the difference to let us know that this is kind of bad, because it's above 85% for all of them.
1229000	1232880	And then you get any new product information if you ask for it.
1232880	1235400	And let me go.
1235400	1236200	All right.
1236200	1240460	Again, another meme Dean does not know, but he's been talking about this for so long.
1240460	1247680	So I'm very happy that we are able to finally get the fingerprinting working and get the dashboard working.
1248920	1252320	All in all, NMEA-2000 is still very widely used.
1252320	1254220	It's a very important protocol.
1254220	1259060	There's no open source research about this, not a lot of available information about this.
1259060	1262240	As people in maritime security, this is very important to us.
1262240	1267020	So yeah, we finally were able to kind of propose something like this.
1267020	1267400	Yeah.
1267400	1273540	And next steps are essentially we are talking about what is being said.
1273540	1280400	We have the analog data to run a similar kind of analysis machine learning on how it's being said.
1280400	1286520	So we'll be doing analog analysis on the actual bit level.
1286580	1295400	If you could imagine, if the characteristics electrically of a bus change, it will change the electrical characteristics of the zeros and ones.
1295400	1297100	It was a huge amount of data.
1297100	1303580	Like if the digital data is big, the analog data is like 200 times, no, 2000 times.
1303580	1304760	It's a lot.
1305280	1310460	So that's where we're moving to, to finish the baselining component of our research.
1310460	1313200	We're then going to move on to a detect and protect.
1313200	1317320	So detect being we've baselined, now we can find anomalies.
1317320	1326060	And then eventually we're looking at methods to be able to essentially inline, prevent bad packets, bad information from coming onto the bus.
1326060	1330880	And we're excited to kind of move on to get through the kind of boring data.
1330880	1334300	Like most of this is data processing, so thanks for bearing with us.
1334300	1342340	But yeah, it's super, super interesting to be able to kind of finally have a deterministic method that will be able to say, Hey, this network is now different.
1342340	1346280	And you can compare networks between vessels that are supposed to be the same.
1346380	1355880	So I mean, if nothing else, a fleet could run this, it could be done in line, or it could be done in batch type analysis where you just do the collection and do this offline.
1356080	1358500	So with that, I think we have a couple of minutes for questions.
1358500	1359340	We can open up.
1359340	1363100	We have about three minutes before we're kicked out, so go for it.
1364340	1365260	Yeah.
1374760	1384540	So AIS is generally going through an AIS transponder, which could be on the NEMA 2000 bus, right?
1384540	1396640	So we're not focusing on that particular gateway, but I think James was just saying that he's very interested in looking at the gateway interfaces to NEMA 2000, which could be a head unit.
1396640	1399880	It could be a kind of radio that has an AIS interface.
1400000	1403060	So for that, I'm not sure, but it would be very interesting.
1403460	1410100	Anyone that is on the bus, anything that is on the bus could be doing a similar analysis, but that's a good idea.
1411280	1411900	Yeah.
1418970	1420390	Yes, absolutely.
1420390	1420970	Yep.
1420970	1425350	That's the idea is that initially it will be a passive listening device.
1425350	1431310	Eventually it could be an inline device that actually can stop traffic and manipulate traffic in transit.
1431310	1433110	We've got another question in the back.
1444180	1445140	Yeah.
1460470	1465650	So when I think about the bus, I think of it kind of like, you know, public forum, right?
1465650	1466650	Everything is there.
1466650	1469250	Everyone's kind of yelling and the person that's yelling the loudest, right?
1469250	1474030	The highest CAN prioritization in CAN arbitration gets heard, right?
1474030	1483270	There are a number of attacks that do kind of like influence people's ability to talk on the bus, whether it's just flooding the bus or so on and so forth.
1483270	1494990	I think what we're aiming to do ultimately is see if there can be an add-on that will enable the bus to have the capability to enable out-of-band communication and encryption.
1495090	1500030	So that's the challenge that we're going to try to explore when we start talking about protecting.
1500030	1510090	So it doesn't exactly answer your question, but that's kind of where our thought is because it is very difficult to, you know, being that it's a public forum bus, everyone you know, gets a vote.
1513710	1518410	We will be at the Maritime Hacking Village for the afternoon and tomorrow.
1518410	1520210	So please come on down.
1520210	1524170	We can do a little bit micro labs, but thank you guys all for coming.
1524170	1526670	Thank you so much to see so many people in this room.
1526670	1527910	Thank you.
