<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Mahmoud Mustafa</title>
    <description>The latest articles on DEV Community by Mahmoud Mustafa (@mahmoudmustafa).</description>
    <link>https://dev.to/mahmoudmustafa</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4263191%2F3597f491-5451-4c73-a0bc-c2fa0917b9bb.png</url>
      <title>DEV Community: Mahmoud Mustafa</title>
      <link>https://dev.to/mahmoudmustafa</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mahmoudmustafa"/>
    <language>en</language>
    <item>
      <title>What a Princeton study found about recycled phone numbers</title>
      <dc:creator>Mahmoud Mustafa</dc:creator>
      <pubDate>Tue, 24 Nov 2026 18:39:27 +0000</pubDate>
      <link>https://dev.to/mahmoudmustafa/what-a-princeton-study-found-about-recycled-phone-numbers-1o8i</link>
      <guid>https://dev.to/mahmoudmustafa/what-a-princeton-study-found-about-recycled-phone-numbers-1o8i</guid>
      <description>&lt;p&gt;A phone number is easy to treat as a permanent identity. A Princeton study of number recycling shows why that is risky. This article summarizes one source: the project page for "Security and Privacy Risks of Number Recycling at Mobile Carriers in the United States" (Kevin Lee and Arvind Narayanan, eCrime 2021). Everything below is what that page reports, plus a short section clearly marked as my own reading for people who build sign-up and recovery flows.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the study looked at
&lt;/h2&gt;

&lt;p&gt;The authors say about 35 million US phone numbers are disconnected each year, and that the standard practice is to reassign them to other subscribers. They describe eight attacks that exploit this. They tested three of them empirically against sets of available numbers at two US mobile carriers.&lt;/p&gt;

&lt;h2&gt;
  
  
  What they found
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Of 259 available numbers sampled, 215 were recycled and were vulnerable to at least one of the three attacks tested.&lt;/li&gt;
&lt;li&gt;171 of the 259 led to hits on people-search services, which can expose personal details of a previous owner.&lt;/li&gt;
&lt;li&gt;171 of the 259 had a linked account at one of six popular websites (Amazon, AOL, Facebook, Google, PayPal, Yahoo), which matters because a number that receives a recovery code can be used for account recovery.&lt;/li&gt;
&lt;li&gt;100 of the 259 were linked to an email address that appeared in a password breach and a profile on at least one of the six sites.&lt;/li&gt;
&lt;li&gt;The authors obtained 200 recycled numbers for one week. 19 of them were still receiving sensitive calls or messages, such as authentication passcodes and prescription refill reminders.&lt;/li&gt;
&lt;li&gt;At one carrier they estimated about one million available recycled numbers, with a largely fresh set appearing each month.&lt;/li&gt;
&lt;li&gt;Neither carrier publicly documented its recycling policy, and the carriers gave inconsistent answers when asked 26 times.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The page also lists other risks that affect people who were just assigned a number, such as phishing that pretends to be the carrier, and a harassment case where a number was used to sign up for alerts and then released.&lt;/p&gt;

&lt;h2&gt;
  
  
  What changed afterward
&lt;/h2&gt;

&lt;p&gt;The page says that in December 2020, T-Mobile updated its number change support page to remind subscribers to update their contact number on bank accounts and social media profiles and to state the FCC-mandated aging period. It says Verizon's public support document was updated in the same way, with the 45-day minimum aging period, as relayed by CTIA.&lt;/p&gt;

&lt;h2&gt;
  
  
  Scope
&lt;/h2&gt;

&lt;p&gt;This is research on two carriers' number-change tools as sampled by the authors. The page dates the carriers' responses to December 2020. I did not repeat it, and I am not saying anything about how current carrier practice looks today. The page is a summary of the paper. I did not read the full paper.&lt;/p&gt;

&lt;h2&gt;
  
  
  My reading for people who build sign-up and recovery flows
&lt;/h2&gt;

&lt;p&gt;This part is my own inference, not a finding from the study.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A phone number can change hands. If it is your only recovery path, the next person to hold it may get your codes.&lt;/li&gt;
&lt;li&gt;Letting people change or remove a phone number, and telling them to update accounts before they give a number up, matches the carrier advice the study reports.&lt;/li&gt;
&lt;li&gt;NIST SP 800-63B-4 treats a change of the pre-registered number as binding a new authenticator, which fits the same concern (see my earlier post on that document).&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Sources (read Nov 24, 2026)
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Study project page: &lt;a href="https://recyclednumbers.cs.princeton.edu/" rel="noopener noreferrer"&gt;https://recyclednumbers.cs.princeton.edu/&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Citation given on that page: Lee and Narayanan, Proceedings of the 2021 APWG Symposium on Electronic Crime Research (eCrime), doi 10.1109/eCrime54498.2021.9738792&lt;/li&gt;
&lt;li&gt;FCC Reassigned Numbers Database FAQ (45-day aging): &lt;a href="https://www.reassigned.us/sites/default/files/2023-08/FAQs_RND_08.16.23.pdf" rel="noopener noreferrer"&gt;https://www.reassigned.us/sites/default/files/2023-08/FAQs_RND_08.16.23.pdf&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;This article was drafted by an AI assistant at the author's direction and checked against the sources above before publishing. #ABotWroteThis&lt;/p&gt;

</description>
      <category>security</category>
      <category>privacy</category>
      <category>authentication</category>
      <category>webdev</category>
    </item>
    <item>
      <title>What NIST says about SMS one-time codes</title>
      <dc:creator>Mahmoud Mustafa</dc:creator>
      <pubDate>Tue, 24 Nov 2026 17:45:31 +0000</pubDate>
      <link>https://dev.to/mahmoudmustafa/what-nist-says-about-sms-one-time-codes-dof</link>
      <guid>https://dev.to/mahmoudmustafa/what-nist-says-about-sms-one-time-codes-dof</guid>
      <description>&lt;p&gt;SMS codes are everywhere, so it is worth reading what the current US federal guidance says about them. This article summarizes one source: NIST SP 800-63B-4, "Authenticator and Verifier Requirements", part of the Digital Identity Guidelines. It covers what the text requires. It does not say how often SMS codes are attacked, and it does not rank products.&lt;/p&gt;

&lt;h2&gt;
  
  
  SMS is a "PSTN" out-of-band authenticator
&lt;/h2&gt;

&lt;p&gt;NIST describes an out-of-band authenticator as a physical device, uniquely addressable, that communicates with the verifier over a separate channel. A typical case is a 6-digit code received on a phone and typed into the sign-in session. SMS and voice calls travel over the public switched telephone network, which the document abbreviates as PSTN.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the text says about the PSTN
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;"Use of the PSTN for out-of-band verification is restricted as described in this section."&lt;/li&gt;
&lt;li&gt;Setting or changing the pre-registered telephone number "is considered to be the binding of a new authenticator."&lt;/li&gt;
&lt;li&gt;Verifiers "SHALL ensure that alternative authenticator types are available to all subscribers" and "SHOULD remind subscribers" of the limits of PSTN delivery before binding a device.&lt;/li&gt;
&lt;li&gt;Verifiers "SHOULD consider risk indicators (e.g., device swap, SIM change, number porting, other abnormal behavior)" before sending a code over the PSTN.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What "restricted" means (Sec. 3.2.9)
&lt;/h2&gt;

&lt;p&gt;At the time of publication, NIST lists one restricted authenticator: the use of the PSTN for out-of-band authentication. Restricted authenticators "remain necessary for some government-to-public applications", but NIST calls them "a less secure approach to multi-factor authentication". The section sets these conditions:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The organization that accepts a restricted authenticator has to assess, understand and accept its risks, and acknowledge that the risks "will likely increase over time."&lt;/li&gt;
&lt;li&gt;If the relying party decides the risk to any party is unacceptable, the restricted authenticator "SHALL NOT be used" and an alternative type "SHALL be used."&lt;/li&gt;
&lt;li&gt;The credential service provider (CSP) has to offer subscribers at least one alternative authenticator that is not restricted, give them meaningful notice of the security risks and of the unrestricted alternatives, address additional risks to subscribers and relying parties in its risk assessment, and develop a migration plan in case the restricted authenticator is not acceptable in the future.&lt;/li&gt;
&lt;li&gt;NIST "may adjust the restricted status" of PSTN out-of-band authentication as the threat landscape and the technical operation of the PSTN change.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Rules for the code itself
&lt;/h2&gt;

&lt;p&gt;For out-of-band verifiers (Sec. 3.1.3.2): in all cases the authentication is invalid unless completed within 10 minutes, a given secret is accepted only once in that period, and the verifier generates secrets of at least six decimal digits (or equivalent). If the secret is shorter than 64 bits, the verifier has to rate-limit failed attempts, and generating a new code does not reset the failed-attempt count.&lt;/p&gt;

&lt;h2&gt;
  
  
  Two other points
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;"Out-of-band authentication is not phishing-resistant."&lt;/li&gt;
&lt;li&gt;Email "SHALL NOT be used for out-of-band authentication." The page adds that confirmation codes sent to validate an email address, or issued as recovery codes, are a different thing and not affected by that rule.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Scope
&lt;/h2&gt;

&lt;p&gt;These are requirements for the organizations that implement NIST's guidelines (relying parties and credential service providers). NIST says restricted authenticators remain necessary for some government-to-public applications. The text does not say SMS codes must never be used. It makes PSTN delivery a restricted option with conditions: assess the risk, offer a non-restricted alternative, tell users, and plan for the option becoming unacceptable. How a particular service applies this is outside what the document says.&lt;/p&gt;

&lt;h2&gt;
  
  
  Sources (read Nov 24, 2026)
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;NIST SP 800-63B-4, July 2025 (Sec. 3.1.3 and 3.2.9): &lt;a href="https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-63B-4.pdf" rel="noopener noreferrer"&gt;https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-63B-4.pdf&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Same text, web version: &lt;a href="https://pages.nist.gov/800-63-4/sp800-63b/authenticators/" rel="noopener noreferrer"&gt;https://pages.nist.gov/800-63-4/sp800-63b/authenticators/&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;This article was drafted by an AI assistant at the author's direction and checked against the sources above before publishing. #ABotWroteThis&lt;/p&gt;

</description>
      <category>security</category>
      <category>authentication</category>
      <category>sms</category>
    </item>
    <item>
      <title>What a phone-number "line type" check can tell a service</title>
      <dc:creator>Mahmoud Mustafa</dc:creator>
      <pubDate>Tue, 24 Nov 2026 17:39:25 +0000</pubDate>
      <link>https://dev.to/mahmoudmustafa/what-a-phone-number-line-type-check-can-tell-a-service-pi2</link>
      <guid>https://dev.to/mahmoudmustafa/what-a-phone-number-line-type-check-can-tell-a-service-pi2</guid>
      <description>&lt;p&gt;When a sign-up form asks for a phone number, a developer has a choice about what to do with it. One option is to look up what kind of line it is. This article explains what one such lookup returns and what it is designed for, using the documentation of a provider that sells it, and what two large services say publicly about the numbers they accept.&lt;/p&gt;

&lt;p&gt;It does not say how often any service runs such a check, or that a check caused any particular rejection. The sources below don't say that.&lt;/p&gt;

&lt;h2&gt;
  
  
  Number types
&lt;/h2&gt;

&lt;p&gt;Twilio's Lookup documentation describes a Line Type Intelligence feature that can identify "the carrier and phone line type, such as mobile, landline, fixed VoIP, non-fixed VoIP, toll free, and more." Its list of type values is: landline, mobile, fixedVoip, nonFixedVoip, personal, tollFree, premium, sharedCost, uan, voicemail, pager and unknown.&lt;/p&gt;

&lt;p&gt;Three definitions from that page are relevant here:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;landline: "A landline number that generally can't receive SMS messages."&lt;/li&gt;
&lt;li&gt;mobile: "A mobile number that generally can receive SMS messages."&lt;/li&gt;
&lt;li&gt;nonFixedVoip: "A virtual phone number obtained online without requiring a physical device. For example, Google Voice or Enflick."&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The page defines fixedVoip as a virtual number "associated with a physical device", with Comcast and Vonage as examples.&lt;/p&gt;

&lt;h2&gt;
  
  
  What this particular lookup returns
&lt;/h2&gt;

&lt;p&gt;According to the same page, the response includes the mobile country code, the mobile network code, the carrier name and the number type. For several types (personal, tollFree, premium, sharedCost, uan, voicemail, pager, unknown) carrier data is not available and those fields come back null. That describes this lookup's output only. A service may hold other information about a user from other sources, and this article doesn't cover it.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it is meant for
&lt;/h2&gt;

&lt;p&gt;A Twilio blog post from July 12, 2022 on filtering VoIP numbers before sending a one-time code says: "One benefit of using phone numbers is that they're more likely to be associated with a unique user. However, VoIP numbers are often correlated with bots and don't have the same assurance that you're interacting with a real and unique user." That is the provider's stated reason for offering the check. Whether a given service uses it, and what it does with the result, is up to that service.&lt;/p&gt;

&lt;h2&gt;
  
  
  What two large services publish
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Google Account Help, "Verify your account", carries the tip "To verify your account, you need a mobile device." It also says that if you choose the call option, "you can also use your home phone number." The page does not describe any screening by line type.&lt;/li&gt;
&lt;li&gt;Signal Support, "Register a phone number", says "The number must be able to receive an insecure SMS or phone call." It offers a verification call if SMS can't be received. It does not discuss line types either.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;So the public pages describe what each flow needs, not how a service decides to accept or refuse a number. Neither promises that any particular number will be accepted.&lt;/p&gt;

&lt;h2&gt;
  
  
  Sources (read Nov 24, 2026)
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Twilio, Line Type Intelligence: &lt;a href="https://www.twilio.com/docs/lookup/v2-api/line-type-intelligence" rel="noopener noreferrer"&gt;https://www.twilio.com/docs/lookup/v2-api/line-type-intelligence&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Twilio blog, How to filter out VoIP numbers before sending an SMS OTP: &lt;a href="https://www.twilio.com/en-us/blog/filter-voip-before-otp-verification" rel="noopener noreferrer"&gt;https://www.twilio.com/en-us/blog/filter-voip-before-otp-verification&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Google Account Help, Verify your account: &lt;a href="https://support.google.com/accounts/answer/114129" rel="noopener noreferrer"&gt;https://support.google.com/accounts/answer/114129&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Signal Support, Register a phone number: &lt;a href="https://support.signal.org/hc/en-us/articles/360007318691-Register-a-phone-number" rel="noopener noreferrer"&gt;https://support.signal.org/hc/en-us/articles/360007318691-Register-a-phone-number&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;This article was drafted by an AI assistant at the author's direction and checked against the sources above before publishing. #ABotWroteThis&lt;/p&gt;

</description>
      <category>security</category>
      <category>authentication</category>
      <category>sms</category>
    </item>
  </channel>
</rss>
