Description of Business and Summary of Significant Accounting Policies | Description of Business and Summary of Significant Accounting Policies Description of Business FireEye, Inc., with principal executive offices located in Milpitas, California, was incorporated as NetForts, Inc. on February 18, 2004, under the laws of the State of Delaware, and changed its name to FireEye, Inc. on September 7, 2005. FireEye, Inc. and its wholly owned subsidiaries (collectively, the “Company”, “we”, “us” or “our”) provide comprehensive intelligence-based cybersecurity solutions that allow organizations to prepare for, prevent, investigate, respond to and remediate cyber attacks. Our portfolio of cyber security products and services is designed to minimize the risk of costly cyber security breaches by detecting and preventing advanced, targeted and other evasive attacks, as well as enabling more efficient management of security operations, including alert management, investigation and response when a breach occurs. We accomplish this through the integration of our core competitive advantages in products and services that adapt to changes in the threat environment through a cycle of intelligence-driven innovation. Our core competitive advantages include: • Our technologies, including our machine-learning, behavioral-based, and rules-based threat detection, analysis and correlation technologies, combined with our proprietary Multi-vector Virtual Execution ("MVX") engine; • Our intelligence on threats and threat actors, based on the continuous flow of machine-, attacker- and victim-based attack data from our global network of threat sensors and virtual machines, as well as intelligence gathered by our security analysts, consultants and incident responders; and • Our accumulated security expertise derived from responding to thousands of significant breaches over the past decade. Our threat detection and prevention products encompass appliance-based, virtual and cloud solutions for web security, email security and endpoint security. These products are complemented by our cloud-based threat intelligence, security analytics and security automation and orchestration technologies, as well as our managed security services, cybersecurity consulting and incident response offerings. In combination, our solutions and services enable a proactive approach to cybersecurity that extends across the threat management lifecycle to minimize the risk of costly cybersecurity breaches. We have organized our cybersecurity solutions in a hub and spokes model designed to integrate machine-generated threat data from our detection and prevention products with our analytics, response and orchestration technologies delivered through our Helix cybersecurity operations platform. Helix is designed to enable more efficient security operations by correlating security and event data across an organization’s environment to determine which threats present the greatest risk, automating repetitive security processes, and providing tools and workflows to investigate and respond to attacks. The Helix cloud-based interface presents a unified view of an organization’s attack surface, including on-premise and cloud environments, and provides the contextual threat intelligence and threat management tools to enable a rapid response. In the three months ended June 30, 2018, we issued $600 million aggregate principal amount of 0.875% Convertible Senior Notes due 2024 (the "2024 Notes"), in a private placement to qualified institutional purchasers pursuant to an exemption from registration provided by Section 4(a)(2) and Rule 144A under the Securities Act of 1933, as amended (the "Securities Act"). We recognized total net proceeds after the initial purchasers' discount and issuance costs of $584.4 million . In connection with the issuance of the 2024 Notes, we also entered into capped call transactions (the "Capped Calls") with certain parties affiliated with the initial purchasers of the 2024 Notes. We paid approximately $65.2 million for the Capped Calls, which have an initial strike price of $23.17 per share, which corresponds to the initial conversion price of the 2024 Notes. The Capped Calls have an initial cap price of $34.32 per share subject to certain adjustments as set forth in the confirmations for the Capped Calls. In May 2018, in a separate transaction, we repurchased $340.2 million aggregate principal of existing 1.000% Convertible Senior Notes due 2035 (the "Series A Notes"). We used $330.4 million of the net proceeds from the 2024 Notes offering to repurchase such portion of the Series A Notes. In January 2018, we completed the acquisition of privately-held X15 Software, Inc. ("X15"), a data management company. As consideration for the acquisition, we paid cash consideration of $5.3 million and issued 1,016,334 shares of our common stock with an estimated fair value of $15.4 million . In October 2017, we acquired Clean Communications Limited (d/b/a The Email Laundry) ("The Email Laundry"), a privately-held email security company. We paid cash consideration of $4.3 million and issued 259,425 shares of our common stock with an estimated fair value of $4.4 million . The majority of our products, subscriptions and services are sold to end-customers through distributors, resellers, and strategic partners, with a lesser percentage of sales directly to our end-customers. Basis of Presentation and Consolidation The consolidated financial statements include the accounts of FireEye, Inc. and its wholly owned subsidiaries and have been prepared in accordance with accounting principles generally accepted in the United States of America (“U.S. GAAP”). All intercompany balances and transactions have been eliminated in consolidation. The Company adopted Accounting Standards Update ("ASU") 2014-09, Revenue from Contracts with Customers (Topic 606) ("ASC 606"), effective January 1, 2018 using the full retrospective method. Upon adoption, we recognized an increase of $125.8 million in accumulated deficit on January 1, 2016 and all prior period amounts impacted by the adoption have been updated. Amounts and disclosures set forth in this Annual Report on Form 10-K comply with ASC 606. Use of Estimates The preparation of consolidated financial statements in conformity with U.S. GAAP requires management to make estimates and assumptions that affect the reported amounts of assets and liabilities and disclosure of contingent assets and liabilities at the date of the financial statements and the reported amounts of revenue and expenses during the reporting period. Such management estimates include, but are not limited to, determining the nature and timing of satisfaction of performance obligations, useful life of our security appliances that are dependent on intelligence and assessing the material rights associated with it, determining the standalone selling price ("SSP") of performance obligations, subscriptions and services, commissions expense including the period of benefit of customer acquisition cost, bonus expense, future taxable income, contract manufacturer liabilities, litigation and settlement costs and other loss contingencies, fair value of our equity awards, achievement of targets for performance stock units, fair value of the liability and equity components of the Convertible Senior Notes and the purchase price allocation of acquired businesses. We base our estimates on historical experience and on assumptions that we believe are reasonable. Changes in facts or circumstances may cause us to change our assumptions and estimates in future periods, and it is possible that actual results could differ from current or revised future estimates. Concentrations Financial instruments that subject us to concentrations of credit risk consist primarily of cash and cash equivalents, short-term investments, and accounts receivable. We maintain a substantial portion of our cash and cash equivalents in money market funds invested in U.S. Treasury related obligations. Management believes that these financial institutions are financially sound and, accordingly, are subject to minimal credit risk. Deposits held with banks may exceed the amount of insurance provided on such deposits. Our short-term investments primarily consist of notes and bonds issued by corporate institutions and U.S. Government agencies. All of our investments are highly-rated by credit rating agencies and are issued by organizations with reputable credit, and therefore bear minimal credit risk. Our accounts receivables are primarily derived from a diverse set of customers across various geographical locations. We perform ongoing credit evaluations of our customers and generally do not require collateral on accounts receivable. We maintain an allowance for doubtful accounts for estimated potential credit losses. See Note 16 for information on major customers. We rely primarily on a single contract manufacturer to assemble our products. In some cases we rely on sole suppliers for a certain number of our components. Foreign Currency Translation and Transactions The functional currency of our foreign subsidiaries is the U.S. dollar. We translate all monetary assets and liabilities denominated in foreign currencies into U.S. dollars using the exchange rates in effect at the balance sheet dates and other assets and liabilities using historical exchange rates. Foreign currency denominated revenue and expenses have been re-measured using the average exchange rates in effect during each period. Foreign currency translation and transaction gains and losses have been included in other income (expense) and have not been significant for the years ended December 31, 2018 , 2017 and 2016 . For the years ended December 31, 2018 , 2017 and 2016 , we recognized a loss of $1.5 million , a gain of $1.8 million and a loss of $1.5 million , respectively. Cash and Cash Equivalents We consider all highly liquid investments with original maturities of three months or less at date of purchase to be cash equivalents. We determine the appropriate classification of our investments at the time of purchase, and evaluate such designation at each balance sheet date. Short-term Investments We classify our investments in debt and equity securities as available-for-sale and record these investments at fair value. Investments with an original maturity of three months or less at the date of purchase are considered cash equivalents, while all other investments are classified as short-term or long-term based on the nature of the investments, their maturities, and their availability for use in current operations. Unrealized gains and losses are reported as a component of other comprehensive loss. Realized gains and losses are determined based on the specific identification method, and are reflected in our Consolidated Statements of Operations. We regularly review our investment portfolio to identify and evaluate investments that have indicators of possible impairment. Factors considered in determining whether a loss is other-than-temporary include, but are not limited to: the length of time and extent a security’s fair value has been below its cost, the financial condition and near-term prospects of the investee, the credit quality of the security’s issuer, likelihood of recovery and our intent and ability to hold the security for a period of time sufficient to allow for any anticipated recovery in value. For our debt instruments, we also evaluate whether we have the intent to sell the security or it is more likely than not that we will be required to sell the security before recovery of its cost basis. Investments are considered to be impaired when a decline in fair value is judged to be other-than-temporary. Fair value is calculated based on publicly available market information or other estimates determined by management. If the cost of an investment exceeds its fair value, we evaluate, among other factors, general market conditions, credit quality of debt instrument issuers, the duration and extent to which the fair value is less than cost and whether we have plans to sell the security, or it is more likely than not that we will be required to sell the security, before recovery. Once a decline in fair value is determined to be other-than-temporary, an impairment charge is recorded to other income (expense) and a new cost basis in the investment is established. Fair Value of Financial Instruments We define fair value as the price that would be received from selling an asset, or paid to transfer a liability, in an orderly transaction between market participants at the measurement date. When determining the fair value measurements for assets and liabilities which are required to be recorded at fair value, we consider the principal or most advantageous market in which to transact and the market-based risk. We apply fair value accounting for all financial assets and liabilities that are recognized or disclosed at fair value in the financial statements on a recurring basis. The carrying amounts reported in the consolidated financial statements approximate the fair value for cash and cash equivalents, accounts receivable, accounts payable and accrued liabilities due to their short-term nature. Inventories Inventories are stated at the lower of cost or net realizable value. Provisions have been made to reduce all slow-moving, obsolete or unusable inventories to their net realizable values. We purchase completed units from contract manufacturers and substantially all of our inventories are finished goods held for use as service replacements. As of December 31, 2018 and 2017 , the reserves for excess and obsolete inventories were $5.2 million and $4.7 million , respectively. Property and Equipment Property and equipment are recorded at cost. Depreciation is computed using the straight-line method over the estimated useful lives of the assets, generally two to five years. The estimated useful lives of property and equipment are described below: Property and Equipment Useful Life Computer equipment and software 2 to 5 years Leasehold improvements Shorter of estimated useful life or remaining lease term Furniture and fixtures 5 years Machinery and equipment 2 to 5 years Demonstration Units Product demonstration units are included in prepaid expenses and other current assets on the consolidated balance sheets. Demonstration units are recorded at cost and are amortized over the estimated useful life from the date of transfer from inventory, generally 12 months. We generally do not resell units that have been used for demonstration purposes. Impairment of Long-Lived Assets We evaluate events and changes in circumstances that could indicate carrying amounts of long-lived assets may not be recoverable. When such events or changes in circumstances occur, we assess the recoverability of long-lived assets by determining whether or not the carrying value of such assets will be recovered through undiscounted expected future cash flows. If the total of the future undiscounted cash flows is less than the carrying amount of an asset, we record an impairment charge for the amount by which the carrying amount of the assets exceeds the fair value of the asset. Through December 31, 2018 we have not written down any of our long-lived assets as a result of impairment. Business Combinations We have accounted for all of our acquisitions using the acquisition method. The Company allocates the fair value of purchase consideration to the tangible assets acquired, liabilities assumed and intangible assets acquired, based on their estimated fair values. The excess of the fair value of purchase consideration over the values of these identifiable assets and liabilities is recorded as goodwill. When determining the fair value of assets acquired and liabilities assumed, management makes significant estimates and assumptions, especially with respect to identifiable intangible assets. Significant assumptions used in valuing certain identifiable intangible assets include, but are not limited to, expected long-term market growth, future expected operating expenses, costs of capital, and appropriate discount rates. Management’s estimates of fair value are based upon assumptions believed to be reasonable, but which are inherently uncertain and, as a result, actual results may differ from estimates. Goodwill and Purchased Intangibles Goodwill represents the excess of the aggregate purchase price paid over the fair value of the net tangible and identifiable intangible assets acquired. Goodwill is not amortized and is tested for impairment at least annually or whenever events or changes in circumstances indicate that the carrying value may not be recoverable. The Company has determined that it operates as one reporting unit and has selected December 1 as the date to perform its annual impairment test. In the valuation of its goodwill, the Company must make assumptions regarding estimated future cash flows to be derived from the Company. If these estimates or their related assumptions change in the future, the Company may be required to record impairment for these assets. The first step of the impairment test involves comparing the fair value of the reporting unit to its net book value, including goodwill. If the net book value exceeds its fair value, then the Company would perform the second step of the goodwill impairment test to determine the amount of the impairment loss. The impairment loss would be calculated by comparing the implied fair value of the Company to its net book value. In calculating the implied fair value of the Company’s goodwill, the fair value of the Company would be allocated to all of the other assets and liabilities based on their fair values. The excess of the fair value of the Company over the amount assigned to its other assets and liabilities represents the implied fair value of goodwill. An impairment loss would be recognized when the carrying amount of goodwill exceeds its implied fair value. There was no impairment of goodwill recorded for the years ended December 31, 2018 , 2017 or 2016 . Purchased intangible assets with finite lives are carried at cost, less accumulated amortization. Amortization is computed over the estimated useful lives of the respective assets. Purchased intangible assets with indefinite lives are assessed for potential impairment annually, or when events or circumstances indicate that their carrying amounts might be impaired. Warranties We generally provide a one -year warranty on hardware. We do not accrue for potential warranty claims as a component of cost of product revenue as all product warranty claims are satisfied under our support and maintenance contracts. Contract Manufacturer Liabilities We outsource most of our manufacturing, repair, and supply chain management operations to our independent contract manufacturers and payments to such manufacturers are a significant portion of our product cost of revenue. Although we could be contractually obligated to purchase manufactured products, we generally do not own the manufactured products. Product title transfers from our independent contract manufacturers to us and to our partners upon shipment. Our independent contract manufacturers assemble our products using design specifications, quality assurance programs, and standards that we establish, and they procure components and assemble our products based on our demand forecasts. These forecasts represent our estimates of future demand for our products based upon historical trends and analysis from our sales and product management functions as adjusted for overall market conditions. If the actual component usage and product demand are significantly lower than forecast, we may accrue for costs for contractual manufacturing commitments in excess of our forecasted demand, including costs for excess components or for carrying costs incurred by our contract manufacturers. To date, we have not accrued any significant costs associated with this exposure. Contract Balances Accounts Receivable Trade accounts receivable are recorded at the billable amount where we have the unconditional right to bill, net of allowances for doubtful accounts. The allowance for doubtful accounts is based on our assessment of the collectability of accounts. Management regularly reviews the adequacy of the allowance for doubtful accounts by considering the age of each outstanding invoice, each customer's expected ability to pay and collection history, when applicable, to determine whether a specific allowance is appropriate. Accounts receivable deemed uncollectible are charged against the allowance for doubtful accounts when identified. Deferred Revenue (Contract Liabilities) and Contract Assets Deferred revenue consists of amounts that have been invoiced and for which we have the right to bill, but have not been recognized as revenue because the related goods or services have not been transferred. Deferred revenue that will be realized during the succeeding 12-month period is recorded as current, and the remaining deferred revenue is recorded as non-current. Our contract assets consist of assets typically resulting when revenue recognized exceeds the amount billed or billable to the customer due to allocation of transaction price, and such amounts have been included in prepaid expenses and other current assets. Our contract assets were immaterial as of December 31, 2018 and December 31, 2017 . In instances where the timing of revenue recognition differs from the timing of invoicing, we have determined our contracts generally do not include a significant financing component. The primary purpose of our invoicing terms is to provide customers with simplified and predictable ways of purchasing our products and services, not to receive financing from our customers or to provide customers with financing. Examples include invoicing at the beginning of a subscription term with revenue recognized ratably over the contract period. Assets Recognized from Costs to Obtain a Contract with a Customer Deferred Commissions Our customer acquisition costs are primarily related to sales commissions and related payroll taxes earned by our sales force and such costs are considered incremental costs to obtain a contract. Sales commissions for initial contracts are deferred and then amortized taking into consideration the pattern of transfer to which the asset relates and may include expected renewal periods where renewal commissions are not commensurate with the initial commissions period. We typically recognize the initial commissions over the longer of the customer relationship (generally estimated to be four years) or over the same period as the initial revenue arrangement to which these costs relate. Renewal commissions not commensurate with the initial commissions paid are generally amortized over the renewal period. Deferred commissions that will amortize within the succeeding twelve month period are classified as current, and included in prepaid expenses and other current assets on the Consolidated Balance Sheets. The remaining balance is classified as non-current, and included in deposits and other long-term assets. As of December 31, 2018 and December 31, 2017 , the amount of deferred commissions included in prepaid expenses and other current assets was $50.1 million and $43.8 million , respectively. The amount of deferred commissions included in deposits and other long-term assets as of December 31, 2018 and December 31, 2017 was $50.5 million and $43.0 million , respectively. Deferred Costs of Revenue Deferred costs of revenue consists of appliance related direct and incremental costs that are capitalized and will be amortized on a systematic basis that is consistent with the pattern of transfer to which the asset relates. Deferred costs of revenue that will be realized within the succeeding twelve month period are classified as current, and included in prepaid expenses and other current assets on the Consolidated Balance Sheets. The remaining balance is classified as non-current, and included in deposits and other long-term assets. As of December 31, 2018 and December 31, 2017 , the amount of deferred costs of revenue classified as current and included in prepaid expenses and other current assets was $17.0 million and $18.4 million , respectively. The amount of deferred costs of revenue classified as non-current and included in deposits and other long-term assets as of December 31, 2018 and December 31, 2017 was $20.3 million and $19.7 million , respectively. Revenue Recognition Revenue from Contracts with Customers Revenue is recognized when all of the following criteria are met: • Identification of the contract, or contracts, with a customer - A contract with a customer exists when (i) we enter into an enforceable contract with a customer that defines each party’s rights regarding the goods or services to be transferred and identifies the payment terms related to these goods or services, (ii) the contract has commercial substance and the parties are committed to perform, and (iii) we determine that collection of substantially all consideration to which it will be entitled in exchange for goods or services that will be transferred is probable based on the customer’s intent and ability to pay the promised consideration. • Identification of the performance obligations in the contract - Performance obligations promised in a contract are identified based on the goods or services that will be transferred to the customer that are both capable of being distinct, whereby the customer can benefit from the goods or service either on its own or together with other resources that are readily available from third parties or from us, and are distinct in the context of the contract, whereby the transfer of the goods or services is separately identifiable from other promises in the contract. To the extent a contract includes multiple promised goods or services, we apply judgment to determine whether promised goods or services are capable of being distinct and distinct in the context of the contract. If these criteria are not met the promised goods or services are accounted for as a combined performance obligation. • Determination of the transaction price - The transaction price is determined based on the consideration to which we will be entitled in exchange for transferring goods or services to the customer adjusted for estimated variable consideration, if any. We typically estimate the transaction price impact of discounts offered to the customers for early payments on receivables or rebates based on channel partner sales achievements. Constraints are applied when estimating variable considerations based on historical experience where applicable. • Allocation of the transaction price to the performance obligations in the contract - If the contract contains a single performance obligation, the entire transaction price is allocated to the single performance obligation. Contracts that contain multiple performance obligations require an allocation of the transaction price to each performance obligation based on a relative SSP basis. Determination of SSP requires judgment. We determine standalone selling price taking into account available information such as historical selling prices of the performance obligation, geographic location, overall strategic pricing objective, market conditions and internally approved pricing guidelines related to the performance obligations. • Recognition of revenue when, or as, we satisfy performance obligation - We satisfy performance obligations either over time or at a point in time as discussed in further detail below. Revenue is recognized at or over the time the related performance obligation is satisfied by transferring a promised good or service to a customer. Nature of Products and Services We generate revenue from the sales of physical and virtual security appliances (products), subscriptions, support and maintenance and professional services, primarily through our indirect relationships with our partners or direct relationships with end customers through our direct sales force. We account for our performance obligations in accordance with ASC 606, and all related interpretations. Our security appliance deliverables include proprietary operating system software, which together with regular security intelligence updates and support and maintenance, deliver the essential functionality of our appliance-based security products. We combine intelligence dependent appliances and software licenses with the related intelligence subscription and support as a single performance obligation. As a result, we recognize revenue for this single performance obligation ratably over the contractual term. Contracts containing this single performance obligation typically contain a material right of renewal option. For contracts that contain a material right of renewal option, the allocated value of the performance obligation is recognized ratably over the period between the end of the initial contractual term and the end of the estimated useful life of the related appliance and license. Revenue from subscriptions to our cloud-based services, which allow customers to use our hosted security software over a contracted period without taking possession of the software and managed services where we provide managed detection and response services for customers, are recognized over the contractual term. We also have a small portion of our revenue from appliances and software that are not dependent on regular threat intelligence updates. Revenue from these appliances and the associated software is therefore recognized when ownership is transferred to our customers, typically upon shipment. Professional services, which include incident response, compromise assessments, and other security consulting services are offered on a time-and-materials basis or through fixed fee arrangements, and we recognize the associated revenue as the services are delivered. Advertising Costs Advertising costs, which are expensed and included in sales and marketing expense when incurred, were $3.4 million , $2.6 million and $3.6 million during the years ended December 31, 2018 , 2017 and 2016 , respectively. Software Development Costs The costs to develop internal-use software are subject to capitalization and begin amortizing once the software is substantially ready for use. These costs are included in property and equipment and are generally amortized over 3 years. All other software development costs are expensed as incurred and included in research and development expense on the Consolidated Statements of Operations. Stock-Based Compensation Compensation expense related to stock-based transactions, including employee and non-employee director awards and our 2013 Employee Stock Purchase Plan (the "ESPP"), is measured and recognized in the financial statements based on fair value. The fair value of each option award is estimated on the grant date using the Black-Scholes option-pricing model and a single option award approach. This model requires that at the date of grant we determine the fair value of the underlying common stock, the expected term of the award, the expected volatility of the price of our common stock, risk-free interest rates, and expected dividend yield of our common stock. The fair value of restricted stock awards and restricted stock units is based on the closing market price of our common stock on the date of grant. The stock-based compensation expense is recognized using a straight-line basis over the requisite service period of the entire awards, which is generally four years . Performance-based awards are subject to performance conditions. We recognize compensation expense over the requisite service period of each vesting tranche, when it becomes probable that the performance criteria set by our Board of Directors will be achieved. Beginning January 1, 2016 with the adoption of ASU 2016-09, we elected to recognize forfeitures as they occur, and no longer estimate a forfeiture rate when calculating the stock-based compensation for our equity awards. We account for stock options issued to non-employees based on the fair value of the awards determined using the Black-Scholes option-pricing model. The fair value of stock options granted to non-employees is remeasured as the stock options vest, and the resulting change in value, if any, is recognized in the statement of operations during the period the related services are rendered. Income Taxes We account for income taxes using the asset and liability method, which requires the recognition of deferred tax assets and liabilities for the e |