<?xml version="1.0"?>
<ownershipDocument>

    <schemaVersion>X0508</schemaVersion>

    <documentType>4</documentType>

    <periodOfReport>2024-12-04</periodOfReport>

    <issuer>
        <issuerCik>0000045012</issuerCik>
        <issuerName>HALLIBURTON CO</issuerName>
        <issuerTradingSymbol>HAL</issuerTradingSymbol>
    </issuer>

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0001350647</rptOwnerCik>
            <rptOwnerName>Pope Lawrence J</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerStreet1>HALLIBURTON COMPANY</rptOwnerStreet1>
            <rptOwnerStreet2>3000 N. SAM HOUSTON PARKWAY E.</rptOwnerStreet2>
            <rptOwnerCity>HOUSTON</rptOwnerCity>
            <rptOwnerState>TX</rptOwnerState>
            <rptOwnerZipCode>77032</rptOwnerZipCode>
            <rptOwnerStateDescription></rptOwnerStateDescription>
        </reportingOwnerAddress>
        <reportingOwnerRelationship>
            <isDirector>0</isDirector>
            <isOfficer>1</isOfficer>
            <isTenPercentOwner>0</isTenPercentOwner>
            <isOther>0</isOther>
            <officerTitle>EVP Administration &amp; CHRO</officerTitle>
        </reportingOwnerRelationship>
    </reportingOwner>

    <aff10b5One>0</aff10b5One>

    <nonDerivativeTable>
        <nonDerivativeTransaction>
            <securityTitle>
                <value>Common Stock</value>
            </securityTitle>
            <transactionDate>
                <value>2024-12-04</value>
            </transactionDate>
            <transactionCoding>
                <transactionFormType>4</transactionFormType>
                <transactionCode>F</transactionCode>
                <equitySwapInvolved>0</equitySwapInvolved>
            </transactionCoding>
            <transactionAmounts>
                <transactionShares>
                    <value>5840</value>
                    <footnoteId id="F1"/>
                </transactionShares>
                <transactionPricePerShare>
                    <value>31.56</value>
                    <footnoteId id="F2"/>
                </transactionPricePerShare>
                <transactionAcquiredDisposedCode>
                    <value>D</value>
                </transactionAcquiredDisposedCode>
            </transactionAmounts>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>411587.977</value>
                    <footnoteId id="F3"/>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                </directOrIndirectOwnership>
            </ownershipNature>
        </nonDerivativeTransaction>
    </nonDerivativeTable>

    <derivativeTable>
        <derivativeHolding>
            <securityTitle>
                <value>Option to Buy Common Stock</value>
            </securityTitle>
            <conversionOrExercisePrice>
                <value>40.75</value>
            </conversionOrExercisePrice>
            <exerciseDate>
                <value>2014-12-03</value>
            </exerciseDate>
            <expirationDate>
                <value>2024-12-03</value>
            </expirationDate>
            <underlyingSecurity>
                <underlyingSecurityTitle>
                    <value>Common Stock</value>
                </underlyingSecurityTitle>
                <underlyingSecurityShares>
                    <value>47400</value>
                </underlyingSecurityShares>
            </underlyingSecurity>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>0</value>
                    <footnoteId id="F4"/>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                </directOrIndirectOwnership>
            </ownershipNature>
        </derivativeHolding>
        <derivativeHolding>
            <securityTitle>
                <value>Option to Buy Common Stock</value>
            </securityTitle>
            <conversionOrExercisePrice>
                <value>31.44</value>
            </conversionOrExercisePrice>
            <exerciseDate>
                <value>2018-12-05</value>
            </exerciseDate>
            <expirationDate>
                <value>2028-12-05</value>
            </expirationDate>
            <underlyingSecurity>
                <underlyingSecurityTitle>
                    <value>Common Stock</value>
                </underlyingSecurityTitle>
                <underlyingSecurityShares>
                    <value>51100</value>
                </underlyingSecurityShares>
            </underlyingSecurity>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>51100</value>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                </directOrIndirectOwnership>
            </ownershipNature>
        </derivativeHolding>
        <derivativeHolding>
            <securityTitle>
                <value>Option to Buy Common Stock</value>
            </securityTitle>
            <conversionOrExercisePrice>
                <value>43.38</value>
            </conversionOrExercisePrice>
            <exerciseDate>
                <value>2017-12-06</value>
            </exerciseDate>
            <expirationDate>
                <value>2027-12-06</value>
            </expirationDate>
            <underlyingSecurity>
                <underlyingSecurityTitle>
                    <value>Common Stock</value>
                </underlyingSecurityTitle>
                <underlyingSecurityShares>
                    <value>34300</value>
                </underlyingSecurityShares>
            </underlyingSecurity>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>34300</value>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                </directOrIndirectOwnership>
            </ownershipNature>
        </derivativeHolding>
        <derivativeHolding>
            <securityTitle>
                <value>Option to Buy Common Stock</value>
            </securityTitle>
            <conversionOrExercisePrice>
                <value>53.54</value>
            </conversionOrExercisePrice>
            <exerciseDate>
                <value>2016-12-07</value>
            </exerciseDate>
            <expirationDate>
                <value>2026-12-07</value>
            </expirationDate>
            <underlyingSecurity>
                <underlyingSecurityTitle>
                    <value>Common Stock</value>
                </underlyingSecurityTitle>
                <underlyingSecurityShares>
                    <value>30500</value>
                </underlyingSecurityShares>
            </underlyingSecurity>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>30500</value>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                </directOrIndirectOwnership>
            </ownershipNature>
        </derivativeHolding>
        <derivativeHolding>
            <securityTitle>
                <value>Option to Buy Common Stock</value>
            </securityTitle>
            <conversionOrExercisePrice>
                <value>38.95</value>
            </conversionOrExercisePrice>
            <exerciseDate>
                <value>2015-12-02</value>
            </exerciseDate>
            <expirationDate>
                <value>2025-12-02</value>
            </expirationDate>
            <underlyingSecurity>
                <underlyingSecurityTitle>
                    <value>Common Stock</value>
                </underlyingSecurityTitle>
                <underlyingSecurityShares>
                    <value>44500</value>
                </underlyingSecurityShares>
            </underlyingSecurity>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>44500</value>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                </directOrIndirectOwnership>
            </ownershipNature>
        </derivativeHolding>
    </derivativeTable>

    <footnotes>
        <footnote id="F1">Shares transferred to Halliburton Company for payment for Federal tax withholding obligations on lapse of restrictions on shares issued under the Stock and Incentive Plan. Said Plan permits Reporting Person to satisfy withholding tax obligation by transferring unrestricted shares to the Issuer.</footnote>
        <footnote id="F2">The stock vested on December 2, 2024 and is related to stock granted on December 2, 2020. The closing price of Halliburton Company's Common Stock on the New York Stock Exchange on December 2, 2024 was $31.56. Shares were withheld for tax reporting on December 4, 2024.</footnote>
        <footnote id="F3">Includes 385.290 shares of stock purchased through the Halliburton Company Employee Stock Purchase Plan for the period ending March 31, 2024 and 277.569 shares for the period ending June 30, 2024.</footnote>
        <footnote id="F4">Stock option expired December 3, 2024.</footnote>
    </footnotes>

    <ownerSignature>
        <signatureName>/s/ Sarah I. Rubenfeld, by Power of Attorney</signatureName>
        <signatureDate>2024-12-06</signatureDate>
    </ownerSignature>
</ownershipDocument>
