Latest / CyberSecurity Summary / Asterisk Hacking
Transcript
- 0:00Speaker 1: Welcome to the deep dive. So think about this for
- 0:02Speaker 1: a second. Imagine you can like totally control your entire
- 0:06Speaker 1: communication system, really shape it into something powerful, precise, totally
- 0:12Speaker 1: customized for you, like turning your phone system into well,
- 0:16Speaker 1: the source we're using calls it a digital Samurai sord.
- 0:19Speaker 2: Right, a samurai sword, I like that, And today that's
- 0:22Speaker 2: exactly what we're diving into. Asterisk. It's this open source
- 0:25Speaker 2: PBX private branch exchange, and its capabilities are pretty incredible, Okay.
- 0:30Speaker 2: Our mission really is to unpack the basics, figure out
- 0:34Speaker 2: how it's kind of revolutionizing communication and look at some
- 0:38Speaker 2: honestly surprising uses like running a whole virtual call center
- 0:42Speaker 2: or even yeah.
- 0:43Speaker 1: Security audits, purity audits. Okay, interesting, and yeah you mentioned
- 0:46Speaker 1: our source. We're digging into Asterisk hacking toolkit and live
- 0:50Speaker 1: CD sounds pretty technical.
- 0:51Speaker 2: It is, yeah, but fascinating stuff. Get ready for some
- 0:55Speaker 2: some real aha moments because this view on telecoms, Yeah,
- 0:58Speaker 2: it might genuinely surprise you.
- 0:59Speaker 1: All right, let's do it. So foundation first, what exactly
- 1:02Speaker 1: is a PBX break it down for us?
- 1:04Speaker 2: Okay, right, So basically, a PBX is the gear, the
- 1:07Speaker 2: equipment that handles phone switching for a private business like
- 1:11Speaker 2: an internal switchboard exactly. It keeps your internal calls, you
- 1:15Speaker 2: talking to a colleague, say, totally inside your network. And
- 1:18Speaker 2: it also manages all the connections going out to the
- 1:21Speaker 2: regular phone network.
- 1:22Speaker 1: Gotcha, And I bet these things have changed a lot.
- 1:24Speaker 1: I remember hearing that, like before the big Bell system
- 1:27Speaker 1: breakup in eighty four, PBXs were massive, huge, like.
- 1:31Speaker 2: Room size sometimes. But after the breakup, Yeah, they shrank
- 1:34Speaker 2: like crazy. The source says, from the size of a
- 1:36Speaker 2: couch to the size of a briefcase.
- 1:38Speaker 1: Wow.
- 1:39Speaker 2: And that shrinkage. It just flooded the market with new
- 1:42Speaker 2: systems and suddenly we got all these features we just
- 1:44Speaker 2: expect now, voicemail, interactive menus, call waiting, caller ID, even
- 1:48Speaker 2: music on hold. It really really changed how businesses communicated.
- 1:53Speaker 1: But I imagine that explosion of options created its own problems.
- 1:57Speaker 2: Right Debfinitely A big one was vendor lock in. See
- 2:00Speaker 2: each company each vendor often had their own special phones.
- 2:04Speaker 1: So company Ex's phone wouldn't work with company wise system.
- 2:07Speaker 2: Exactly, total headache for businesses, and sometimes vendors would set
- 2:11Speaker 2: things up and then just disappear, leaving customers totally stranded.
- 2:15Speaker 2: If something went wrong.
- 2:16Speaker 1: Ouch. Okay, so that sounds like a perfect setup for
- 2:19Speaker 1: something disruptive to come along, like voiceover IP VoIP.
- 2:24Speaker 2: Precisely, VoIP really shakes things up. The core idea is
- 2:27Speaker 2: sending your voice calls over your existing data networks, your
- 2:31Speaker 2: computer network, and.
- 2:32Speaker 1: The big draw there is cost I assume.
- 2:34Speaker 2: Oh yeah, often these calls can be basically free or
- 2:37Speaker 2: very close to it.
- 2:38Speaker 1: How does that work though, squeezing voice onto a data line.
- 2:42Speaker 2: It's all about compression using things called codex. Think of
- 2:45Speaker 2: them like ZIP files for your voice. Okay, So a
- 2:48Speaker 2: standard old phone call using something called MA law took
- 2:51Speaker 2: up about sixty four kilobits per second, which meant a
- 2:53Speaker 2: T one line pretty common back then, could only handle
- 2:57Speaker 2: maybe twenty four calls at once.
- 2:58Speaker 1: Okay, twenty four calls. It seems limiting.
- 3:00Speaker 2: It was, but with newer codex those numbers just shoot up.
- 3:04Speaker 2: Take G point seventy twenty nine. That drops the bandwidth
- 3:07Speaker 2: need down to just eight kbps.
- 3:08Speaker 1: Wow, big difference.
- 3:10Speaker 2: Huge. Suddenly that same T one line handles one hundred
- 3:13Speaker 2: and ninety two calls, though that one needs a license.
- 3:17Speaker 2: But then you get really extreme ones like LPC.
- 3:19Speaker 1: Ten LPC ten. What's that one like?
- 3:21Speaker 2: Okay, this one's tiny two point five kbpcs. It's like
- 3:25Speaker 2: six hundred and fourteen calls on that same T one
- 3:27Speaker 2: line sixt fourteen.
- 3:28Speaker 1: That's insane efficiency. But what's the catch? What does it
- 3:31Speaker 1: sound like?
- 3:32Speaker 2: Well, this is where the source has that memorable detail.
- 3:34Speaker 2: It apparently often sounds like two whales making mating calls.
- 3:38Speaker 1: Chuckles seriously whales.
- 3:40Speaker 2: Yep intelligible supposedly, but ah yeah, not exactly professional sounding,
- 3:46Speaker 2: probably not. But it shows you right, how those early
- 3:49Speaker 2: VoIP engineers were just pushing the absolute limits, prioritizing cost
- 3:53Speaker 2: savings over perfect audio quality. It's a clear trade off.
- 3:56Speaker 2: More compression lower quality makes sense.
- 3:58Speaker 1: So besides compression and cost, what else did VIP really unlock?
- 4:01Speaker 2: Mobility? That's the other huge one. What happens when your
- 4:03Speaker 2: team isn't all in one building.
- 4:05Speaker 1: Right, remote work, traveling salespeople exactly?
- 4:08Speaker 2: With voyip, your phone calls can follow you anywhere you
- 4:11Speaker 2: have a data connection, home broadband, the office network. Even
- 4:15Speaker 2: the source mentions Wi Fi at a local drinking establishment.
- 4:19Speaker 1: Lefs, so your pub becomes your office extension.
- 4:22Speaker 2: Kinda yeah, your sales team could be all over the country.
- 4:24Speaker 2: But their phone number is still just an extension on
- 4:27Speaker 2: the company PBX. They get voicemail, all the features, just
- 4:31Speaker 2: like they were sitting at their desk.
- 4:32Speaker 1: That flexibility is massive for how businesses can operate now.
- 4:36Speaker 1: But it's worth pointing out VOYAP itself isn't just an
- 4:39Speaker 1: asterisk thing, is it?
- 4:40Speaker 2: Oh? Definitely not. Traditional PBX makers, the big phone companies,
- 4:44Speaker 2: they've all adopted VOYP too. It's become pretty standard.
- 4:47Speaker 1: But asterisk it came from a different place, didn't it.
- 4:51Speaker 1: The origin store is pretty cool.
- 4:52Speaker 2: It really is. Back in nineteen ninety nine, this guy,
- 4:54Speaker 2: Mark Spencer, he needed a PBX for his own company. Okay,
- 4:57Speaker 2: looked around, found everything cost an armor a leg sound familiar. Yeah,
- 5:02Speaker 2: So what does he do? Just decides to build his
- 5:04Speaker 2: own from scratch.
- 5:06Speaker 1: Wow, just build the phone system.
- 5:08Speaker 2: Yep. Now the source material we're using, it's honest. It
- 5:11Speaker 2: says asterisk is hard.
- 5:13Speaker 1: Okay, good to know, not necessarily plug and play.
- 5:16Speaker 2: Not initially no ye. But it also says once you
- 5:19Speaker 2: become familiar with its intricacies, everything suddenly starts to make sense,
- 5:24Speaker 2: which is kind of true for a lot of powerful
- 5:27Speaker 2: open source stuff, right.
- 5:28Speaker 1: Yeah, that tracks steep learning curve, but big payoff.
- 5:32Speaker 2: Exactly, and that payoff the real world advantages they're huge.
- 5:36Speaker 2: Think about virtual.
- 5:36Speaker 1: Call centers right before VoIP, that meant tons of physical
- 5:40Speaker 1: space or paying a fortune to forward calls to people's
- 5:44Speaker 1: homes exactly.
- 5:45Speaker 2: But with Asterisk and VoIP, a call center can run
- 5:49Speaker 2: with barely any physical office. Agents just need broadband wherever
- 5:52Speaker 2: they are.
- 5:53Speaker 1: And that's not just for call centers, right, and any
- 5:55Speaker 1: company with remote workers, any mobile workforce.
- 5:57Speaker 2: Yeah, it translates directly into cost savings too. Right, if
- 6:00Speaker 2: your company already has data links between buildings or cities.
- 6:03Speaker 1: You just route the voice calls over those existing links.
- 6:05Speaker 2: BINGO, save money, free up your old phone lines. Plus,
- 6:09Speaker 2: think about how many people have phones, way more than
- 6:12Speaker 2: have reliable computer access sometimes the digital divide. Right. Sure,
- 6:16Speaker 2: Asterisk lets you build voice based applications that can reach
- 6:19Speaker 2: almost anyone. It dramatically expands who you can communicate with.
- 6:23Speaker 1: Okay, So if people are listening and thinking this sounds interesting,
- 6:26Speaker 1: where do they go to learn more?
- 6:27Speaker 2: Good question. Www dot asterisk dot org is the main
- 6:31Speaker 2: spot downloads news, developer info and www dot digm dot com.
- 6:36Speaker 2: That's Mark Spencer's company, The Driving Force behind Asterisk they
- 6:40Speaker 2: offer training hardware, that.
- 6:41Speaker 1: Kind of stuff, got it, asterisk dot org and digim
- 6:44Speaker 1: dot com. Okay, so we've painted this picture of asterisks potential.
- 6:47Speaker 1: Let's say someone's listening and thinking, right, I want to
- 6:49Speaker 1: build my own voice kingdom. Where do they even start
- 6:52Speaker 1: with the hardware? What bits and pieces do you need?
- 6:54Speaker 2: Okay? Hardware? First up the server. Interestingly, the Asterisk software
- 6:59Speaker 2: itself tiny, doesn't need much storage really, and then you
- 7:03Speaker 2: start adding things voice prompts for menus to press one
- 7:06Speaker 2: for sale.
- 7:06Speaker 1: The IVR right Interactive Voice Response.
- 7:09Speaker 2: Exactly, and of course voicemail. That's when the storage footprint
- 7:12Speaker 2: starts to grow. You need to plan based on how
- 7:15Speaker 2: many users you'll have how much voicemail they might save.
- 7:18Speaker 1: Okay, so server space depends on usage. What about the
- 7:21Speaker 1: phones themselves? Do you need special IP phones?
- 7:23Speaker 2: You can use dedicated IP phones, yeah, like the Cisco
- 7:26Speaker 2: seven nine sixties mentioned in the source. But there's also
- 7:29Speaker 2: this clever little gadget called an ATA Analog Telephone.
- 7:34Speaker 1: Adapter AKA what's that do?
- 7:36Speaker 2: It's basically the Source calls it the bridge between the
- 7:41Speaker 2: world of analog telephones and the world of VoIP.
- 7:44Speaker 1: Ah. So let's you plug in a regular old phone
- 7:46Speaker 1: pretty much like.
- 7:47Speaker 2: The one you might have at home, plug it into
- 7:48Speaker 2: the ATA, plug the ATA to your network, and boom
- 7:51Speaker 2: it talks of VOYIP. They're usually cheaper than ipphones.
- 7:54Speaker 1: That's smart leverage existing hardware.
- 7:56Speaker 2: Yep. They work with most standard analog phones, but not
- 8:00Speaker 2: those proprietary digital phones from old pbx's or really old
- 8:04Speaker 2: rotary dial phones. Why not rotary because apparently pulse diyling
- 8:08Speaker 2: is an obsolete protocol for most atas they expect touchstones.
- 8:11Speaker 1: Huh okay, good to know. No rotary dialing on your
- 8:14Speaker 1: fancy OIP system. What if you want to connect analog
- 8:18Speaker 1: phones directly to the server, though maybe for more control.
- 8:21Speaker 2: For that, you'd use interface cards like digitm sells cards
- 8:24Speaker 2: that can handle anywhere from one analog phone up to
- 8:27Speaker 2: like ninety six on a single card. Wow okay, and
- 8:30Speaker 2: these cards often do support pulse diyling for those vintage
- 8:33Speaker 2: phone enthusiasts. You can also get cards to connect to preis.
- 8:37Speaker 1: Pre I's primary rate interfaces. Those are the big digital
- 8:40Speaker 1: lines from the phone company right now.
- 8:41Speaker 2: Yeah, exactly, high capacity usually twenty three or twenty four
- 8:43Speaker 2: voice channels. You can use a channel bank to split
- 8:46Speaker 2: that PI signal out to individual analog phones or lines
- 8:49Speaker 2: if you need to.
- 8:50Speaker 1: Okay, so hardware sorted server phones or atas, maybe interface cards.
- 8:55Speaker 1: Now the network voice sounds like it would be pretty
- 8:57Speaker 1: demanding on the network.
- 8:58Speaker 2: It can be. Yeah, remember that oilaw codec sixty four kbps,
- 9:03Speaker 2: which is eight kilobytes per second.
- 9:05Speaker 1: Okay, eight kbbs doesn't sound like much on its own,
- 9:07Speaker 1: not for.
- 9:08Speaker 2: One call, No, but scale it up. Imagine say twenty
- 9:11Speaker 2: five hundred simultaneous calls. Now you're talking a constant stream
- 9:15Speaker 2: of twenty megabytes per second just for voice traffic. That
- 9:18Speaker 2: definitely highlights why your network backbone needs to be solid.
- 9:21Speaker 1: Right, So, if you've got voice and regular computer data
- 9:24Speaker 1: flying around, how do you stop like a big file
- 9:28Speaker 1: download for making your phone calls sound terrible? I guess
- 9:31Speaker 1: vlands come into play here. Virtual local area networks absolutely essential.
- 9:35Speaker 2: Vlands are basically a software trick in your network switches.
- 9:39Speaker 2: They let you create virtual partitions on the same physical network,
- 9:43Speaker 2: so you.
- 9:43Speaker 1: Can put all the phones on one virtual network and
- 9:45Speaker 1: all the computers on another.
- 9:47Speaker 2: Exactly keep the voice traffic totally separate from the data traffic.
- 9:50Speaker 2: That massive file transfer won't interfere with cul quality then,
- 9:54Speaker 2: and this separation it's also a big win for security.
- 9:58Speaker 1: How so security for voice?
- 10:00Speaker 2: Yeah, just like any data VOYP traffic can be sniffed.
- 10:03Speaker 2: There are automated tools out there. The source mentions vomit
- 10:06Speaker 2: and cane enable that attackers can use to just listen
- 10:09Speaker 2: in and record calls. But if your voice traffic is
- 10:12Speaker 2: on its own separate VLAN, it creates a barrier, makes
- 10:15Speaker 2: it way harder for someone on the MAINTATA network to
- 10:18Speaker 2: just casually intercept your calls. The absolute best practice a
- 10:22Speaker 2: whole second dedicated ethernet network just for phones, or at
- 10:25Speaker 2: least a very strictly controlled VLAN.
- 10:27Speaker 1: Okay, isolate the voice traffic makes sense. What about optimizing
- 10:31Speaker 1: things over like wider connections between offices.
- 10:36Speaker 2: When optimization right on those wide area networks, you often
- 10:39Speaker 2: use bandwidth shaping, basically telling the network what traffic is.
- 10:42Speaker 1: Most important, so you prioritize the voice.
- 10:44Speaker 2: You can two main ways. You can dedicate a chunk
- 10:47Speaker 2: of bandwidth just for VoIP say one megabit is always
- 10:51Speaker 2: reserved for voice guarantees service, but it's inefficient if no
- 10:54Speaker 2: one's on.
- 10:55Speaker 1: The phone wasted bandwidth then potentially.
- 10:57Speaker 2: The other way is just to prioritize VoIP let data
- 11:00Speaker 2: use one hundred percent if it needs it. But if
- 11:02Speaker 2: a voice pack it comes along, it jumps to the
- 11:04Speaker 2: front of the line. More efficient use of bandwidth, but
- 11:07Speaker 2: maybe slightly less guaranteed quality than pure dedication.
- 11:10Speaker 1: It's a trade off efficiency versus guarantees. Got it okay,
- 11:15Speaker 1: network's tuned. How do you actually get Asterisk installed and running?
- 11:19Speaker 1: What's the typical approach?
- 11:21Speaker 2: Well, there are quite a few Linux distributions built specifically
- 11:24Speaker 2: around Asterisk. One of the most popular, especially for ease
- 11:28Speaker 2: of use, has been tricks Box, trix Box Yeah start
- 11:30Speaker 2: out back in two thousand and five. Is Asterisk get
- 11:33Speaker 2: home really designed to make it simpler for people? It
- 11:35Speaker 2: got acquired by a company called Finality, and Yeah became
- 11:39Speaker 2: super popular, tens of thousands of downloads a month. Apparently
- 11:42Speaker 2: big reason.
- 11:43Speaker 1: It's a web interface, ah, a guy that always helps
- 11:46Speaker 1: lower the barrier to entry definitely.
- 11:48Speaker 2: Trick Box uses tools like PHP can fig, Asterisk, canfig Editor,
- 11:52Speaker 2: and free pbx. These give you a web page you
- 11:55Speaker 2: can log into, just type the server's IP address in
- 11:57Speaker 2: your browser and manage stuff like call recording, conference calls
- 12:00Speaker 2: voicemail all through menus and buttons.
- 12:03Speaker 1: Sounds pretty user friendly for something potentially complex.
- 12:06Speaker 2: It is, but here's a really critical security point from
- 12:09Speaker 2: the source material.
- 12:10Speaker 1: Oh what's that?
- 12:11Speaker 2: That tricks box management system the web in face It
- 12:14Speaker 2: does not use SSL encryption by default.
- 12:16Speaker 1: Wait seriously, no HTTPS.
- 12:18Speaker 2: Nope, which means when you log in your username and
- 12:22Speaker 2: password they're sent in plaintext. Anyone sniffing the network can
- 12:26Speaker 2: see them. Wow.
- 12:27Speaker 1: Okay, that's a massive security hole to be aware of
- 12:30Speaker 1: if you're using that interface.
- 12:32Speaker 2: Absolutely huge. Definitely something to lock down immediately if you
- 12:35Speaker 2: go that route. And while that interface like free pbx
- 12:39Speaker 2: makes things easier.
- 12:40Speaker 1: To start, there's a butt coming, isn't there?
- 12:42Speaker 2: There is? You can grow out of it quickly. Frameworks
- 12:44Speaker 2: like that simplify things, but they also constrain you. If
- 12:48Speaker 2: you want to do something really custom, something the framework
- 12:50Speaker 2: wasn't designed for, it can become a real pain or
- 12:53Speaker 2: just impossible through the GUI.
- 12:55Speaker 1: So for real power users, you eventually need to get
- 12:58Speaker 1: your hands dirty with the actual fig.
- 13:00Speaker 2: File pretty much. Yeah, you need to dive into the
- 13:02Speaker 2: core configuration.
- 13:03Speaker 1: Okay, so how is that structure? Is it just one
- 13:05Speaker 1: giant file?
- 13:06Speaker 2: No, thankfully not Asterisk uses many small configuration files, all
- 13:12Speaker 2: interconnected to one another, like over sixty of them.
- 13:15Speaker 1: Sixty. Wow, that sounds complicated.
- 13:18Speaker 2: It sounds it, but there's a logic to it and
- 13:21Speaker 2: a big advantage. If you mess up one setting in
- 13:24Speaker 2: one file, it's less likely to bring the entire system down.
- 13:28Speaker 2: It helps prevent, as the source puts it, the entire
- 13:31Speaker 2: proverbial house of cards come crashing down.
- 13:33Speaker 1: Ah, modularity, that makes sense. So where does the call
- 13:38Speaker 1: logic live?
- 13:39Speaker 2: That's mainly in the dial plant. Every single call, no
- 13:41Speaker 2: matter where it comes from or where it's going, goes
- 13:44Speaker 2: through the dial plant. It's made up of things called contexts, extensions,
- 13:47Speaker 2: and variables.
- 13:48Speaker 1: Okay, contexts, extensions, variables. Now, the source makes a really
- 13:51Speaker 1: big deal about clarifying something here. Extensions versus channels. They're
- 13:56Speaker 1: not the same thing.
- 13:57Speaker 2: Not at all, and yet it's fundamental to under standing asterisk.
- 14:01Speaker 2: Extensions are the numbers assigned to devices or features like
- 14:05Speaker 2: your desk phone might be extension one oh.
- 14:07Speaker 1: One, okay, the logical number right.
- 14:09Speaker 2: Channels on the other end, are the actual connections to
- 14:11Speaker 2: those devices, the communication pathways.
- 14:14Speaker 1: How does that work in practice? Give me an example.
- 14:16Speaker 2: Sure, you could have one physical phone on your desk,
- 14:19Speaker 2: but maybe you set it up so it rings. If
- 14:21Speaker 2: someone dials extension one oh one or Extension one oh
- 14:24Speaker 2: two or Extension five hundred. Maybe a group put number
- 14:27Speaker 2: three different.
- 14:27Speaker 1: Extensions but only one phone. One physical connection.
- 14:30Speaker 2: Exactly three logical extensions, but only one channel the connection
- 14:35Speaker 2: to your single phone. Extensions are logical channels are physical
- 14:39Speaker 2: or virtual connections? Crucial difference?
- 14:41Speaker 1: Got it? That clarifies things a lot? So the dial
- 14:44Speaker 1: plan uses these. Can you walk through a super simple
- 14:48Speaker 1: call flow?
- 14:49Speaker 2: Yeah, okay, basic call comes in first? Maybe you answer
- 14:52Speaker 2: the call, then play a message using background like that
- 14:56Speaker 2: thank you for calling, Congloma Corp sound.
- 14:58Speaker 1: File right while listening for exactly.
- 15:01Speaker 2: Maybe the message says press one hundred for tech support.
- 15:04Speaker 2: If the caller presses one hundred, the dial plan uses
- 15:06Speaker 2: the dial command. Maybe dialis IP ten to connect them
- 15:10Speaker 2: to the phone at extension ten. If they don't press
- 15:12Speaker 2: anything and the message finishes, maybe you just hang up.
- 15:15Speaker 2: You can also jump between different parts of the dial
- 15:17Speaker 2: plan using go to. It's very step by step like.
- 15:19Speaker 1: Programming a flow chart. Almost I can see how you
- 15:22Speaker 1: can build complex menus. Is there a more like script
- 15:25Speaker 1: like way to write.
- 15:26Speaker 2: These there is. Yeah, it's called extensions dot al, the
- 15:29Speaker 2: Asterisk extensions language developed by Digitium. The source says it's
- 15:34Speaker 2: syntactically much more powerful than the traditional extensions dot com
- 15:38Speaker 2: file format.
- 15:39Speaker 1: AEL sounds like it might appeal more to programmers.
- 15:42Speaker 2: Definitely if you're used to scripting in say Perl or Python,
- 15:46Speaker 2: AEL syntax might feel more natural, more powerful for complex logic.
- 15:50Speaker 1: Cool. Okay, so you've got your internal system configured. Now,
- 15:53Speaker 1: how do you connect this astrisk kingdom to the rest
- 15:56Speaker 1: of the world. What protocols does it use?
- 15:58Speaker 2: Astrisk supports a whole bunch, but for VoIP, the two
- 16:02Speaker 2: big ones you'll run into are SIP and IAX two.
- 16:05Speaker 1: SIP Session Initiation Protocol. That one sounds familiar. It's pretty standard.
- 16:09Speaker 2: SEP is the most common VoIP protocol. It's an official
- 16:13Speaker 2: Internet standard. Pretty much every VoIP phone, every VoIP service
- 16:17Speaker 2: provider supports SIP, so.
- 16:18Speaker 1: That's the one you'd usually use often.
- 16:20Speaker 2: Yes, but it has its quirks, complexities, especially when you're
- 16:26Speaker 2: trying to get calls across different networks through firewalls.
- 16:29Speaker 1: Well kind of quirks. What goes wrong with CP?
- 16:31Speaker 2: Well, the main thing is that SIP actually uses two protocols.
- 16:34Speaker 2: SIP itself is just for setting up the call, tearing
- 16:37Speaker 2: it down, managing the session.
- 16:38Speaker 1: Okay, the control signals.
- 16:40Speaker 2: Right, But the actual voice, your conversation that travels over
- 16:43Speaker 2: a different protocol called RTP Real Time Transport Protocol.
- 16:47Speaker 1: Two protocols for one call. Sounds like it could get confusing.
- 16:50Speaker 2: It can, especially for firewalls and neat routers network address translation.
- 16:55Speaker 2: You know the thing most home routers do. They get
- 16:57Speaker 2: really confused by CIP. Sometimes the sipart works the call connects,
- 17:01Speaker 2: but the RTP part the audio gets blocked, so you
- 17:04Speaker 2: get silence. The source calls that the audiopath will not
- 17:07Speaker 2: be carrying audio.
- 17:09Speaker 1: Dead air frustrating any other SIP issues.
- 17:13Speaker 2: Yeah, Sometimes GTMF tones the keypad beeps when you press
- 17:16Speaker 2: numbers can get messed up. The source says, certain codex
- 17:20Speaker 2: mangle the audio enough that the other end doesn't recognize
- 17:23Speaker 2: the tones correctly. I think trying to navigate an automated
- 17:26Speaker 2: menu and it just doesn't register your keypresses.
- 17:29Speaker 1: Okay, so SIP is standard but can be tricky with
- 17:32Speaker 1: networks and sometimes tones. What's the alternative? You mentioned IAX.
- 17:36Speaker 2: Two, right, IAX two stands for inter Asterisk Exchange Protocol
- 17:40Speaker 2: Version two. It was designed by DIGITM mainly for connecting
- 17:43Speaker 2: Asterisk servers.
- 17:44Speaker 1: Together interasterisk, so it's mostly for Asterisk to Asterisk calls.
- 17:48Speaker 2: That was the original idea, but its advantages make it
- 17:51Speaker 2: useful in other situations too, especially overcoming those network issues
- 17:55Speaker 2: as IP has.
- 17:56Speaker 1: What are the advantages? How does it fix the firewall problem?
- 17:59Speaker 2: The killer feature of IAX two is that it uses
- 18:01Speaker 2: a single port usually EDP port four five sixty nine
- 18:05Speaker 2: for everything. Both the call control signaling and the voice
- 18:07Speaker 2: data travel over that one port.
- 18:10Speaker 1: AH, so the firewall only needs to worry about one connection.
- 18:13Speaker 2: Exactly much simpler. It means IAX two easily works in
- 18:17Speaker 2: just about any environment without confusing firewalls or not enabled routers.
- 18:22Speaker 2: Big win for network traversal. Plus, it uses smaller binary
- 18:25Speaker 2: codes for signaling instead of sip's text based HGTP like commands.
- 18:30Speaker 1: So uses less bandwidth two a bit less yeah.
- 18:32Speaker 2: More efficient. So IX two is great for server links
- 18:36Speaker 2: or situations where you control both ends and want simpler
- 18:39Speaker 2: network setup. SIP is better for compatibility with the wider world.
- 18:43Speaker 1: Makes sense. Choose the right tool for the job. What
- 18:45Speaker 1: about connecting to actual old school phone lines, not VoIP
- 18:50Speaker 1: For that, you use.
- 18:50Speaker 2: Those interface cards we mentioned earlier, and they use a
- 18:53Speaker 2: PoTA connections. That's just the internal Asterisk name for handling
- 18:56Speaker 2: traditional phone hardware.
- 18:57Speaker 1: Okay, zapata. And there are two types of signals.
- 19:00Speaker 2: Right, FXO and FXS. You need an FXO port to
- 19:03Speaker 2: connect to the phone company's line coming into your building.
- 19:06Speaker 2: It expects to receive dial tone and signals from the network.
- 19:08Speaker 1: Okay. FXO receives from the telco.
- 19:11Speaker 2: And an FXS port is what you use to connect
- 19:13Speaker 2: a standard analog telephone to your Asterisk server. It provides
- 19:18Speaker 2: dial tone and signals to the phone, just like the
- 19:20Speaker 2: phone company would.
- 19:21Speaker 1: Got it. FXS sends to the phone. Okay, crucial feature
- 19:24Speaker 1: for any PBX voicemail. How does Asterisk candle that? Is
- 19:28Speaker 1: it some special hardware?
- 19:29Speaker 2: Nope, that's the beauty of it. Asterisk just stores voicemails
- 19:33Speaker 2: as regular audio files like WAV files or GSM files
- 19:37Speaker 2: on the servers hard drive exactly, or a flashcard whatever
- 19:40Speaker 2: storage you have. Compared to old pbx's with their expensive
- 19:43Speaker 2: proprietary voicemail cards that held like an hour of messages, Yeah,
- 19:47Speaker 2: Asterisk running on a PC affords you an amazing amount
- 19:50Speaker 2: of storage space. Just add another hard drive if you
- 19:52Speaker 2: need more. It's super flexible.
- 19:54Speaker 1: And using it leaving messages checking them pretty standard.
- 19:58Speaker 2: There are two main applications. Voice mail is used in
- 20:00Speaker 2: the dial plant to like callers leave a message, and
- 20:03Speaker 2: voicemail Maine is what you dial into to check your messages.
- 20:06Speaker 2: It does all the usual stuff prompts, passwords, saving, deleting,
- 20:09Speaker 2: plus cool things like sending you an email when you
- 20:11Speaker 2: get a voicemail, I'm.
- 20:12Speaker 1: Nice with the message attached yep, you can have.
- 20:14Speaker 2: It attached to the audio file right to the email,
- 20:16Speaker 2: or just send a notification. Really handy definitely.
- 20:20Speaker 1: What other sort of standard PBX features does Asterisk handle easily?
- 20:25Speaker 2: Well, there's music on hold obviously, you can even set
- 20:28Speaker 2: up different classes of music, so callers to sales might
- 20:31Speaker 2: hear one thing callers to support here.
- 20:33Speaker 1: Another customizable hold music okay.
- 20:36Speaker 2: And conference calls big one. For internal meetings, Asterisk uses
- 20:41Speaker 2: an application called meet me lets multiple people dial into
- 20:44Speaker 2: a virtual conference room.
- 20:45Speaker 1: Meet me. Does that need anything special?
- 20:47Speaker 2: It does? Yeah. It needs a reliable timing source to
- 20:50Speaker 2: keep all the audio streams synchronized Usually this comes from
- 20:54Speaker 2: one of those Digita hardware cards, or there's a software
- 20:57Speaker 2: workaround using a kernel module called ZiT dummy if you
- 20:59Speaker 2: don't have the hardware. But yeah, timing is key for
- 21:02Speaker 2: clear conferencing.
- 21:04Speaker 1: Okay, so this is all really powerful call handling. But
- 21:06Speaker 1: you mentioned ASTROSK can be extended customized. That sounds like
- 21:10Speaker 1: where the real power comes in, like that Samurai sword idea.
- 21:12Speaker 1: How does that work?
- 21:14Speaker 2: This is where it gets really interesting. The core mechanism
- 21:16Speaker 2: for this is called AGI, the Asterisk Gateway Interface.
- 21:20Speaker 1: AGI Gateway Interface sounds important.
- 21:23Speaker 2: It is. It's how Asterisk can talk to external programs
- 21:26Speaker 2: or scripts. Now, there's a simple way, using the system
- 21:29Speaker 2: command and the dial plan. You can tell ASTs, hey,
- 21:32Speaker 2: run this script.
- 21:32Speaker 1: Okay, seems easy enough.
- 21:34Speaker 2: It is. But the catch is once Asterisk runs that
- 21:37Speaker 2: script using system, it kind of lets go. The source says,
- 21:41Speaker 2: Asterisk can no longer interact with the script. It just runs,
- 21:44Speaker 2: does its thing, and Asterisk moves on.
- 21:45Speaker 1: So it's like a one way street. Asterisk tells the
- 21:48Speaker 1: script to run, but can't get anything back from it
- 21:50Speaker 1: during the call exactly.
- 21:52Speaker 2: That's where AGI is different. AGI maintains a two way
- 21:54Speaker 2: conversation between Asterisk and the external script while the call
- 21:58Speaker 2: is active.
- 21:58Speaker 1: Ah okay, that's the key. How does it manage that
- 22:01Speaker 1: two way communication?
- 22:02Speaker 2: It's actually the source calls. It a powerful yet simple system.
- 22:07Speaker 2: It uses standard Unix file handles, std, std out, and cysdr.
- 22:12Speaker 1: Started input stand output stand air like basic command line stuff.
- 22:15Speaker 2: Pretty much. Asterisk sends commands and information to the script
- 22:20Speaker 2: via the script's stdi in, and the script sends commands
- 22:23Speaker 2: and results back to Asterisk via its stdout. It's a
- 22:27Speaker 2: universal way for programs to talk.
- 22:29Speaker 1: So because it uses these standard channels, it.
- 22:32Speaker 2: Means almost any programming language can be used to write
- 22:35Speaker 2: an AGI script. Perl, Php, Python, c Java, shell scripts,
- 22:40Speaker 2: whatever can read from standard input and write to standard
- 22:43Speaker 2: output can interact with Asterisk during a call.
- 22:46Speaker 1: Wow, okay, that blows things wide open. Your phone system
- 22:49Speaker 1: isn't just handling calls anymore. It's suddenly this interactive platform
- 22:52Speaker 1: that can run code in response to calls.
- 22:54Speaker 2: Exactly. It turns your phone system into like an application
- 22:57Speaker 2: seer that happens to talk to people.
- 22:59Speaker 1: Give us an example, soll what that's a cool, maybe
- 23:01Speaker 1: unexpected thing you can do with Agi?
- 23:03Speaker 2: Okay, here's a fun one from the source. Imagine you
- 23:05Speaker 2: have one of those scrolling LED signs, like a Beta
- 23:07Speaker 2: Brite sign. Yeah, you could write a pearl AGI script.
- 23:11Speaker 2: The source gives one called wlsid dot pl that connects
- 23:14Speaker 2: to that sign through the server serial port. When a
- 23:17Speaker 2: call comes into Asterisk, don't tell me, the AGI script
- 23:21Speaker 2: grabs the caller ID information and sends commands to the
- 23:24Speaker 2: LED sign to display the caller's name and numbers scrolling
- 23:28Speaker 2: across it lass.
- 23:29Speaker 1: That's brilliant. A physical caller ID display on a big
- 23:32Speaker 1: sign right.
- 23:34Speaker 2: Just needs the Asterisk user to have permission to write
- 23:36Speaker 2: to the serial port. But it's a perfect example of
- 23:39Speaker 2: bridging the phone system to the physical world via a script.
- 23:43Speaker 2: AGI scripts can also do things within the call, like
- 23:46Speaker 2: say number to read digits back, say phonetic to spell
- 23:48Speaker 2: things out, say time, even set calor rid to change
- 23:52Speaker 2: the outgoing caller ID, or set contexts to move the
- 23:55Speaker 2: call to a different part of the dial plant. Loads
- 23:57Speaker 2: of control.
- 23:58Speaker 1: That level of interaction is in credible. Is it hard
- 24:01Speaker 1: to write these AGI scripts? Dealing with all of back
- 24:04Speaker 1: and forth communication?
- 24:05Speaker 2: We can be a bit fiddly, Yeah, handling all the
- 24:06Speaker 2: commands and responses. But there are libraries to help, like
- 24:10Speaker 2: Asterisk that AGI for Perol or PHPGI for PHP. These
- 24:14Speaker 2: libraries handle a lot of the repetitive stuff, the boiler
- 24:17Speaker 2: replate communication.
- 24:18Speaker 1: Code, so the developer can just focus on the application launchic.
- 24:21Speaker 2: Exactly once you focus more on developing the application itself.
- 24:24Speaker 2: There are even more advanced versions too, like fast IGI
- 24:27Speaker 2: FASTGI Yeah, that lets you run your AGI scripts on
- 24:30Speaker 2: a completely separate server. They communicate with Asterisk over the network.
- 24:33Speaker 2: Good for load balancing or if your scripts need special
- 24:35Speaker 2: resources and there's dead AGI.
- 24:38Speaker 1: Dead Agi sounds ominous tuckles net.
- 24:42Speaker 2: It just means the AGI script can keep running even
- 24:45Speaker 2: after the caller hangs up. Useful for cleanup tasks, logging
- 24:48Speaker 2: stuff like that. And EAGI provides direct access to the
- 24:52Speaker 2: call's audio stream for processing.
- 24:54Speaker 1: Okay, the power and flexibility here are just immense, but
- 24:57Speaker 1: that usually comes with the flip side right security, Let's
- 25:01Speaker 1: pivot to that, the double edged sword. Maybe first, the
- 25:04Speaker 1: protocols themselves. How does VoIP handle voice data and what
- 25:07Speaker 1: are the vulnerabilities?
- 25:08Speaker 2: Right? So, your actual voice when it's turned into data,
- 25:11Speaker 2: it mainly travels using RTP, the real time protocol. We
- 25:14Speaker 2: mentioned that briefly with SIP.
- 25:16Speaker 1: Yeah, the second protocol SIP uses.
- 25:18Speaker 2: Exactly, and RTP typically runs over UDP, the User Datagram protocol. Now,
- 25:22Speaker 2: UDP is different from TCP, which most web traffic uses.
- 25:25Speaker 2: UDP is stateless stateless meaning meaning it just sends packets
- 25:29Speaker 2: out without checking if they arrived or in what order,
- 25:32Speaker 2: like sending postcards instead of a registered letter.
- 25:34Speaker 1: That sounds unreliable for voice. Wouldn't you lose words?
- 25:38Speaker 2: You'd think so, but it's actually considered a feature for
- 25:40Speaker 2: real time voice. TCP guarantees delivery right here, resends lost packets.
- 25:45Speaker 2: Imagine doing that in a conversation. You get these long pauses,
- 25:49Speaker 2: then a burst of delayed audio totally unusable.
- 25:52Speaker 1: Ah. Okay, So UDP's unreliability is better for voice because
- 25:56Speaker 1: it prioritizes speed over perfect delivery. A tiny blip is
- 26:00Speaker 1: better than a long freeze.
- 26:01Speaker 2: Precisely, the source notes that with TCP, minor network issues
- 26:05Speaker 2: could render a VoIP conversation useless due to retransmissions. UDP
- 26:09Speaker 2: just plows ahead, making it feel more immediate, even if
- 26:12Speaker 2: a tiny packet gets lost here and there.
- 26:13Speaker 1: Okay, So RTP over UDP for the voice itself, we
- 26:16Speaker 1: talked about SAP versus IX two for signaling. Any security
- 26:20Speaker 1: differences there.
- 26:21Speaker 2: Well, SIPs text based AHCTP like commands make it easier
- 26:24Speaker 2: to debug if something's wrong, you can just read the traffic,
- 26:27Speaker 2: but they do use a bit more bandwidth. IX two's
- 26:30Speaker 2: binary approach is more compact, efficient, and as we said,
- 26:33Speaker 2: simpler for firewalls. From a pure security protocol view, both
- 26:38Speaker 2: can be encrypted, but their structures differ. Now let's talk
- 26:42Speaker 2: actual threats. What can go.
- 26:43Speaker 1: Wrong right when voice is just data? What kind of
- 26:46Speaker 1: attacks do you worry about?
- 26:47Speaker 2: Well, the classics still apply denial of service DOS or
- 26:51Speaker 2: distributed doss.
- 26:52Speaker 1: D dogs flooding the network to take things offline.
- 26:54Speaker 2: Yep, just overwhelming the asterisk server or the network connection
- 26:57Speaker 2: with junk traffic so legitimate calls can't get it through.
- 27:00Speaker 2: VOYIP is just as susceptible as any web server or
- 27:03Speaker 2: email server, and because it's real time, it's often more
- 27:06Speaker 2: sensitive to these floods. And importantly, the source points out
- 27:10Speaker 2: neither integrity checks nor encryption can prevent these attacks. They're
- 27:13Speaker 2: just about raw volume.
- 27:15Speaker 1: So defense against DOS is more about network capacity and filtering,
- 27:18Speaker 1: not the voyet protocol itself. What about attacks that try
- 27:21Speaker 1: to like redirect calls that.
- 27:23Speaker 2: Could be DNS poisoning or spoofing. If your VoIP system
- 27:28Speaker 2: uses domain names like zip dotmcompany, dot com to find servers,
- 27:33Speaker 2: an attacker could poison the DNS records.
- 27:35Speaker 1: So when your phone tries to reach SIP dotmcompany, dot com,
- 27:39Speaker 1: it gets sent to the attackers server instead.
- 27:42Speaker 2: Exactly, they could intercept calls, record them, maybe try to
- 27:45Speaker 2: steal credentials.
- 27:46Speaker 1: Nasty. And what about attacks inside the local network man
- 27:50Speaker 1: in the middle.
- 27:50Speaker 2: Yeah, MITM attacks are a big risk, especially on switch networks,
- 27:54Speaker 2: usually done via ARP spoofing.
- 27:56Speaker 1: ARP spoofing refreshing my memory. That's tricking devices about MC addresses, right.
- 28:02Speaker 2: An attacker sends out fake ARP messages basically telling your phone, hey,
- 28:05Speaker 2: the server's MC address is my MC address, and telling
- 28:09Speaker 2: the server, hey, the phone's MC address is my MAC address.
- 28:12Speaker 1: So all the traffic between the phone and the server
- 28:14Speaker 1: flows through the attacker's machine precisely.
- 28:16Speaker 2: Tools like ettercap make this disturbingly easy. They can scan
- 28:20Speaker 2: the network, find phones and servers, and perform the AARP
- 28:23Speaker 2: poisoning automatically, even if your own computer isn't directly involved
- 28:26Speaker 2: in the call. An attacker on the same network segment
- 28:29Speaker 2: could potentially intercept it, and.
- 28:31Speaker 1: Those villains we talked about help mitigate this.
- 28:33Speaker 2: They help a lot. Yeah, if the phones are on
- 28:35Speaker 2: a separate VLAN from most user machines, it makes it
- 28:38Speaker 2: much harder for a casual attacker to even see the
- 28:40Speaker 2: VOP traffic to begin with, let alone spoof.
- 28:43Speaker 1: ARP for it. Okay, are there other VoIP specific attacks mentioned.
- 28:47Speaker 2: Yeah, a few others. Rogue VoIP endpoint. Basically, an attacker
- 28:50Speaker 2: finds an unused network jack, plugs in their own VoIP
- 28:54Speaker 2: device and tries to register it on your system, maybe
- 28:57Speaker 2: using stolen.
- 28:58Speaker 1: Credentials sneaking onto the network.
- 29:00Speaker 2: Right. Then there's registration hijacking. An attacker pretends to be
- 29:04Speaker 2: your phone and tells the server, Hey, I'm extension one
- 29:06Speaker 2: on one now rerouting your calls to them. Proxy impersonation
- 29:10Speaker 2: tricks your phone into talking to a fake server, and
- 29:13Speaker 2: the big one financially toll fraud.
- 29:15Speaker 1: Toll fraud making expensive calls on someone else's.
- 29:18Speaker 2: Dime exactly, hacking into the asterisk server itself, maybe through
- 29:22Speaker 2: a week password or vulnerability, and then using it to
- 29:25Speaker 2: make thousands of dollars worth of calls to international numbers
- 29:28Speaker 2: or premium rate lines that can bankrupt a small company fast.
- 29:32Speaker 1: Okay, lots of potential vulnerabilities. Now let's slip that Samurai
- 29:36Speaker 1: sword again. How can Asterisk itself be used for security
- 29:40Speaker 1: or maybe an auditing leveraging some of these network behaviors right.
- 29:44Speaker 2: Using the tool offensively or at least proactively. One example
- 29:49Speaker 2: given is combining Asterisk with motion detection software.
- 29:53Speaker 1: Motion detection like security cameras.
- 29:56Speaker 2: Yeah, there's open source software called Motion that watches video
- 29:59Speaker 2: feeds from movement. You could configure Motion so that if
- 30:02Speaker 2: it detects movement inside your house when you're away.
- 30:05Speaker 1: It triggers an Asteris action exactly.
- 30:07Speaker 2: It could run a script that tells Asterisk to call
- 30:09Speaker 2: your cell phone, maybe even use AGI to play a
- 30:12Speaker 2: specific warning message.
- 30:13Speaker 1: Intruder alert playing on yourself.
- 30:15Speaker 2: Could be and you could even try to spoof the
- 30:17Speaker 2: caller ID to something like security camera nine nine zero
- 30:20Speaker 2: zero zero zero one, though the source notes the name
- 30:23Speaker 2: part security camera often gets dropped by the public phone network.
- 30:26Speaker 2: They just look up the number. Still a cool integration.
- 30:29Speaker 1: That is clever. Okay, what about something that sounds totally
- 30:32Speaker 1: retro modems? Why on earth would you use a modem
- 30:35Speaker 1: with foe IP.
- 30:36Speaker 2: It sounds weird, right, but modems are still out there,
- 30:38Speaker 2: coinasale terminals tvo boxes needing to call home some credit
- 30:43Speaker 2: card equipment. They still use dial up and for security auditors.
- 30:47Speaker 2: Modems are key for war dialing.
- 30:49Speaker 1: Ah. War dialing. Now, that sounds familiar straight out of
- 30:52Speaker 1: the movie Wargames, isn't it.
- 30:53Speaker 2: The name got popularized by the movie in nineteen eighty four,
- 30:56Speaker 2: But the actual practice, sometimes called demon dialing, is older.
- 31:00Speaker 2: Is just systematically dialing phone numbers and arrange to see
- 31:02Speaker 2: what answers, looking for modems, fax machines, maybe even other
- 31:06Speaker 2: PBXs or voicemail.
- 31:07Speaker 1: Systems, okay, scanning for open doors on the phone network.
- 31:10Speaker 1: Why is doing this via VIP better than just using
- 31:13Speaker 1: a regular phone line and a modem?
- 31:15Speaker 2: Ah Several reasons. Big one annemity or at least obfuscation.
- 31:20Speaker 2: With VoIP, you can often mask where I'm coming.
- 31:22Speaker 1: From, spoofing the caller ID exactly.
- 31:24Speaker 2: The source gives an example where prefixing a dial number
- 31:27Speaker 2: with five tells their VoIP provider okay, spoof the caller
- 31:30Speaker 2: ID to whatever I specify. This also messes up the
- 31:34Speaker 2: A and I information that's automatic number identification the billing
- 31:38Speaker 2: number basically, so it's harder.
- 31:39Speaker 1: To trace back glover any other tricks.
- 31:41Speaker 2: Yeah, here's a neat one. Spoof your telephone number as
- 31:44Speaker 2: the number from an own fax machine.
- 31:46Speaker 1: Why would you do that.
- 31:47Speaker 2: To deter callbacks? If someone sees the mysted call and
- 31:51Speaker 2: tries to call back, they just get a fax screeching tone.
- 31:55Speaker 2: Less likely to investigate further loops.
- 31:59Speaker 1: That's devs Okay, what was that other term? Backspoofing?
- 32:03Speaker 2: Right, backspoofing, This is slightly different. You spoof a phone
- 32:07Speaker 2: number to yourself, so you make a call from number
- 32:10Speaker 2: X to number X. When the call hits, the phone
- 32:12Speaker 2: company systems their caller ID named database CNAM looks up
- 32:16Speaker 2: number X and displays the registered owner's name beck.
- 32:20Speaker 1: You the caller, so you can use it to figure
- 32:21Speaker 1: out who owns a particular number potentially.
- 32:23Speaker 2: Yeah, right, uses the phone company's own database against itself
- 32:27Speaker 2: in a way. And of course, Asterisk makes recording all
- 32:29Speaker 2: these calls easy using the monitor command of the dial plan.
- 32:32Speaker 2: But a big caveat here.
- 32:34Speaker 1: Let me guess legalities.
- 32:36Speaker 2: Absolutely the source stresses. Check your local laws regarding recording
- 32:39Speaker 2: telephone calls. Consent requirements very hugely right, So is.
- 32:43Speaker 1: There special software for doing this kind of OIP war dialing.
- 32:46Speaker 2: There is an open source tool called i WAR Intelligent
- 32:50Speaker 2: War Dealer i WAR.
- 32:51Speaker 1: What makes it special It's.
- 32:53Speaker 2: Designed for war dialing, so it supports things like random
- 32:56Speaker 2: or sequential dialing, trying to detect modem tones, automatically blacklists
- 33:00Speaker 2: of numbers not to call. But the key thing is
- 33:03Speaker 2: it has native iax TOOIP support.
- 33:06Speaker 1: Ah, so it can talk directly using that asterisk friendly
- 33:09Speaker 1: protocol exactly.
- 33:10Speaker 2: It acts as a full featured VoIP client designed specifically
- 33:14Speaker 2: for dialing lots of numbers. The source shows an example
- 33:16Speaker 2: command like i war pre dial five MP nine to
- 33:19Speaker 2: four SAMUS five five five fifty range one than eleven hundred.
- 33:23Speaker 1: So that would dial nine oh four five five five
- 33:25Speaker 1: five thousand, one thousand and one, one thousand and two
- 33:27Speaker 1: up to eleven hundred using that five poot prefix for.
- 33:30Speaker 2: Spoofing precisely very targeted scanning.
- 33:32Speaker 1: Okay, this is clearly powerful stuff, bordering on well packing
- 33:36Speaker 1: tools depending on intent. What are the absolute must know
- 33:39Speaker 1: legal points and security tips here?
- 33:41Speaker 2: Number one repeated multiple times. Always always check your local
- 33:44Speaker 2: and state laws before doing any kind of war dialing
- 33:46Speaker 2: or security scanning, and critically get prior permission from the
- 33:49Speaker 2: target on authorized scanning is illegal in most places. Don't
- 33:52Speaker 2: do without explicit written permission.
- 33:54Speaker 1: Permission is key, got it? And for securing your own
- 33:57Speaker 1: Asterisk system against these kinds of things.
- 34:00Speaker 2: Remember those config files, passwords in them are usually plain
- 34:03Speaker 2: text oh right, not encrypted nope, So file permissions are critical.
- 34:07Speaker 2: Make sure those config files are readable only by the
- 34:09Speaker 2: user that Asterrisk is running under, usually a dedicated as
- 34:13Speaker 2: Risk user. Don't let just anyone read them.
- 34:15Speaker 1: Limit access. What else?
- 34:17Speaker 2: If you have remote phones connecting you over the internet,
- 34:19Speaker 2: home users, branch offices, use encryption SRTP for the voice stream.
- 34:24Speaker 2: Maybe wrap everything in an IP six tunnel or use
- 34:27Speaker 2: OpenVPN encrypt.
- 34:28Speaker 1: That traffic, protect data and transit.
- 34:30Speaker 2: Absolutely and back to the network level vlands, set them
- 34:34Speaker 2: up properly, isolate your voice network. That's your best defense
- 34:37Speaker 2: against eavesdropping and ARP spoofing on your local network.
- 34:41Speaker 1: Wow. Okay, what an incredible journey through Asterisk. We've really
- 34:44Speaker 1: gone from its sort of humble open source roots with
- 34:48Speaker 1: Mark Spencer right.
- 34:49Speaker 2: Just needing a cheaper PVX.
- 34:50Speaker 1: All the way to this incredibly powerful flexible tool that
- 34:54Speaker 1: Samurai sord analogy feels pretty accurate now. It can build
- 34:58Speaker 1: amazing communications systems, but you also need to understand its
- 35:01Speaker 1: power and potential dangers.
- 35:04Speaker 2: It definitely requires careful handling knowledge. We've seen how you
- 35:08Speaker 2: build it, configure it with those contexts and extensions, extend
- 35:11Speaker 2: it with AGI connected with sep or iax.
- 35:15Speaker 1: Two, and how to think about securing it from file
- 35:17Speaker 1: permissions to vilans to encryption. It really empowers people and
- 35:23Speaker 1: companies to control their own comms infrastructure in a way
- 35:27Speaker 1: that just wasn't possible before. Unprecedented control really, So looking forward,
- 35:31Speaker 1: as technology keeps racing ahead, you know, AI, Internet of Things,
- 35:34Speaker 1: everything's getting connected, our reliance on these communication systems is
- 35:38Speaker 1: only going to grow.
- 35:39Speaker 2: Right, Absolutely, they're becoming even more critical infrastructure.
- 35:41Speaker 1: So what new vulnerabilities might pop up as voyip gets
- 35:45Speaker 1: tangled up with AI, with IoT devices, and maybe more optimistically,
- 35:49Speaker 1: how will open source tools like asterisk keep evolving to
- 35:52Speaker 1: let people innovate but also defend themselves in that that
- 35:55Speaker 1: increasingly complex landscape.
- 35:57Speaker 2: That's the big question, isn't it. Constant evolution and constant
- 36:00Speaker 2: adaptation needed.
- 36:02Speaker 1: Definitely something to chew on as you navigate your own
- 36:04Speaker 1: digital world,