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”) is a leader in stopping advanced cyber attacks that use advanced malware, zero-day exploits, and APT (“Advanced Persistent Threat”) tactics. Our solutions supplement traditional and next-generation firewalls, Intrusion Prevention Systems (“IPS”), anti-virus, and gateways, which cannot stop advanced threats, leaving security holes in networks. We offer a solution that detects and blocks attacks across Web, email, endpoint, file and mobile threat vectors, as well as latent malware resident on file shares. Our solutions address all stages of an attack lifecycle with a signature-less engine utilizing stateful attack analysis to detect zero-day threats. In February 2016, we acquired Invotas International Corporation (“Invotas”), a provider of security automation and orchestration technology. We paid upfront cash consideration of $17.7 million and issued 742,026 shares of our common stock with an estimated fair value of $11.1 million . In January 2016, we acquired iSIGHT Security, Inc. (d/b/a iSIGHT Partners, Inc.) (“iSIGHT”), one of the world’s leading providers of cyber threat intelligence for global enterprises. We paid upfront cash consideration of $192.8 million , incurred liabilities of $39.1 million contingent upon the achievement of a threat intelligence bookings target on or before the end of the second quarter of 2018, and issued 1,793,305 shares of our common stock with an estimated fair value of $29.9 million . In June 2015, we issued $460.0 million principal amount of 1.000% Convertible Senior Notes due 2035 (the “Series A Notes”) and $460.0 million principal amount of 1.625% Convertible Senior Notes due 2035 (the “Series B Notes” and together with the Series A Notes, the “Convertible Senior 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 $896.5 million . In connection with the issuance of the Convertible Senior Notes, we also entered into privately negotiated prepaid forward stock purchase transactions (each a “Prepaid Forward”) with one of the initial purchasers of the Convertible Senior Notes, pursuant to which we paid approximately $150.0 million . The amount of the prepaid is equivalent to approximately 3.3 million shares which are to be settled on or around June 1, 2020 and June 1, 2022, respectively, subject to any early settlement in whole or part of each Prepaid Forward. In March 2014, we completed our follow-on public offering in which we issued and sold 5,582,215 shares of common stock at a price of $82.00 per share. We received aggregate proceeds of $446.5 million from the sale of shares of common stock, net of underwriters’ discounts and commissions of $11.2 million , but before deducting offering expenses of approximately $2.2 million . Another 8,417,785 shares were sold by certain selling stockholders, which included 796,846 shares sold pursuant to the exercise of vested outstanding options by our employees. We did not receive any of the proceeds from the sales of shares by the selling stockholders. We sell the majority of our products, subscriptions and services to end-customers through distributors, resellers, and strategic partners, with a lesser percentage of sales directly to 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. 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, the best estimate of selling price for our products, subscriptions and services, commissions expense, 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 Convertible Senior Notes and the purchase price allocation of acquired businesses. We base our estimates on historical experience and also 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 15 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 re-measurement gains and losses have been included in other income (expense) and have not been significant for the years ended December 31, 2016 , 2015 and 2014 . 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. Accounts Receivable Trade accounts receivable are recorded at the invoiced amount, 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 partner’s expected ability to pay and the collection history with each partner, when applicable, to determine whether a specific allowance is appropriate. Accounts receivable deemed uncollectible are charged against the allowance for doubtful accounts when identified. Inventories Inventories are stated at the lower of cost or market. 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. Accordingly, substantially all inventories are finished goods with an immaterial balance of replacement parts. As of December 31, 2016 and 2015 , the reserves for excess and obsolete inventories were $3.8 million and $1.4 million , respectively. Deferred Costs of Revenue Deferred cost of revenue consists of direct and incremental costs related to product revenue deferred in accordance with the Company’s revenue recognition policy. Deferred cost of revenue that will be realized within the succeeding 12 month period is 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. 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, 2016 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 intangible assets. Critical estimates in valuing certain identifiable 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 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 is 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, 2016 , 2015 or 2014 . 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. Deferred Revenue Deferred revenue consists of amounts that have been invoiced and for which the Company has the right to bill, but that have not been recognized as revenue. 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. 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. Revenue Recognition We generate revenue from the sales of products, subscriptions, support and maintenance and professional services, primarily through our indirect relationships with our partners as well as end customers through our direct sales force. Our products include operating system software that is integrated into the appliance hardware and is deemed essential to its functionality. As a result, we account for product revenue in accordance with Accounting Standards Codification 605, Revenue Recognition, and all related interpretations, as all of our security appliance deliverables include proprietary operating system software, which together delivers the essential functionality of our products. Our professional services consist primarily of time and materials based contracts, and the revenue is recognized as costs are incurred at amounts represented by the agreed-upon billing amounts. Revenue from fixed-price professional services engagements are recognized under the proportional performance method of accounting. Revenue is recognized when all of the following criteria are met: • Persuasive Evidence of an Arrangement Exists . We rely upon non-cancelable sales agreements and purchase orders to determine the existence of an arrangement. • Delivery has Occurred . We use shipping documents or transmissions of service contract registration codes to verify delivery. • The Fee is Fixed or Determinable . We assess whether the fee is fixed or determinable based on the payment terms associated with the transaction. • Collectability is Reasonably Assured . We assess collectability based on credit analysis and payment history. Our products include principal security product families that address critical vectors of attack, including Web, email, endpoint, file and mobile. Our Network Threat Prevention, Endpoint Threat Prevention, Email Threat Prevention, File Content Security, Forensic Analysis System and Central Management System appliance and subscription services qualify as separate units of accounting. Therefore product revenue from these appliances is recognized at the time of shipment. At the time of shipment, product revenue meets the criteria for fixed or determinable fees. In addition, payment from our partners is not contingent on the partners' collection from their end-customers. Our partners do not stock products and do not have any stock rotation rights. We recognize subscription and support and maintenance service revenue ratably over the contractual service period, which is typically one or three years. Professional services revenue, including incident response and related consulting services for our customers who have experienced a cybersecurity breach or who require assistance assessing the vulnerability of their networks, and training services revenue is recognized as the services are rendered. Most of our arrangements, other than renewals of subscriptions and support and maintenance services, are multiple-element arrangements with a combination of product, subscriptions, support and maintenance, and other services. For multiple-element arrangements, we allocate revenue to each unit of accounting based on an estimated selling price at the arrangement inception. The estimated selling price for each element is based upon the following hierarchy: vendor-specific objective evidence (“VSOE”) of selling price, if available, third-party evidence (“TPE”) of selling price, if VSOE of selling price is not available, or best estimate of selling price (“BESP”), if neither VSOE of selling price nor TPE of selling price are available. The total arrangement consideration is allocated to each separate unit of accounting using the relative estimated selling prices of each unit based on the aforementioned selling price hierarchy. We limit the amount of revenue recognized for delivered elements to an amount that is not contingent upon future delivery of additional products or services or meeting of any specified performance conditions. To determine the estimated selling price in multiple-element arrangements, we seek to establish VSOE of selling price using the prices charged for a deliverable when sold separately and, for subscriptions and support and maintenance, based on the renewal rates and discounts offered to partners. If VSOE of selling price cannot be established for a deliverable, we seek to establish TPE of selling price by evaluating similar and interchangeable competitor products or services in standalone arrangements with similarly situated partners. However, as our products contain a significant element of proprietary technology and offer substantially different features and functionality from our competitors, we are unable to obtain comparable pricing of our competitors’ products with similar functionality on a standalone basis. Therefore, we have not been able to obtain reliable evidence of TPE of selling price. If neither VSOE nor TPE of selling price can be established for a deliverable, we establish BESP primarily based on historical transaction pricing. Historical transactions are segregated based on our pricing model and our go-to-market strategy, which include factors such as type of sales channel (reseller, distributor, or end-customer), the geographies in which our products and services were sold (domestic or international), offering type (products, subscriptions or services), and whether or not the opportunity was identified by our sales force or by our partners. In analyzing historical transaction pricing, we evaluate whether a majority of the prices charged for a product, as represented by a percentage of list price, fall within a reasonable range. To further support the best estimate of selling price as determined by the historical transaction pricing or when such information is unavailable, such as when there are limited sales of a new product, we consider the same factors we have established through our pricing model and go-to-market strategy. The determination of BESP is made through consultation with and approval by our management. We have established the estimated selling price of all of our deliverables using BESP. Shipping charges billed to partners are included in revenue and related costs are included in cost of revenue. Sales commissions and other incremental costs to acquire contracts are also expensed as incurred and are recorded in sales and marketing expense. After receipt of a partner order, any amounts billed in excess of revenue recognized are recorded as deferred revenue. Advertising Costs Advertising costs, which are expensed and included in sales and marketing expense when incurred, were $3.6 million , $5.1 million and $2.3 million during the years ended December 31, 2016 , 2015 and 2014 , 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 , unless the awards are subject to performance conditions, in which case the Company recognizes compensation expense over the requisite service period of each vesting tranche. For performance-based awards, the Company recognizes compensation expense when it becomes probable that the performance criteria set by the 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. Stock-based compensation for the years ended December 31, 2015 and 2014 was calculated using an estimated forfeiture rate based on an analysis of our actual historical forfeitures. 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 expected future tax consequences of events that have been recognized in our financial statements or tax returns. In addition, deferred tax assets are recorded for the future benefit of utilizing net operating losses and research and development credit carry forwards. Valuation allowances are provided when necessary to reduce deferred tax assets to the amount expected to be realized. We apply the authoritative accounting guidance prescribing a threshold and measurement attribute for the financial recognition and measurement of a tax position taken or expected to be taken in a tax return. We recognize liabilities for uncertain tax positions based on a two-step process. The first step is to evaluate the tax position for recognition by determining if the weight of available evidence indicates that it is more likely than not that the position will be sustained on audit, including resolution of related appeals or litigation processes, if any. The second step requires us to estimate and measure the tax liability as the largest amount that is more likely than not to be realized upon ultimate settlement. We recognize interest and penalties related to unrecognized tax benefits within the income tax expense line in the accompanying consolidated statements of operations. Accrued interest and penalties are included within other long-term liabilities in the consolidated balance sheets. Net Loss Per Share Attributable to Common Stockholders We calculate our basic and diluted net loss per share attributable to common stockholders in conformity with the two-class method required for companies with participating securities. Under the two-class method, in periods when the Company has net income, net income attributable to common stockholders is determined by allocating undistributed earnings, calculated as net income less current period convertible preferred stock non-cumulative dividends, between common stock and the convertible preferred stock. In computing diluted net income attributable to common stockholders, undistributed earnings are re-allocated to reflect the potential impact of dilutive securities. The Company’s basic net loss per share attributable to common stockholders is calculated by dividing the net loss attributable to common stockholders by the weighted-average number of shares of common stock outstanding for the period. The diluted net loss per share attributable to common stockholders is computed by giving effect to all potential dilutive common stock equivalents outstanding for the period. For purposes of this calculation, options to purchase common stock are considered common stock equivalents, but have been excluded from the calculation of diluted net loss per share attributable to common stockholders as their effect is anti-dilutive. Convertible Senior Notes We allocated the principal amount of the Convertible Senior Notes between its liability and equity components. The carrying amount of the liability component was determined by measuring the fair value of a similar debt instrument of similar credit quality and maturity that did not have the convert feature. The carrying amount of the equity component, representing the embedded conversion option, was determined by deducting the fair value of the liability component from the principal amount of the Convertible Senior Notes as a whole. The equity component was recorded to additional paid-in capital and is not remeasured as long as it continues to meet the conditions for equity classification. The excess of the principal amount of the Convertible Senior Notes over the carrying amount of the liability component was recorded as a debt discount, and is being amortized to interest expense using the effective interest method through the first date holders have the right to require us to repurchase all or any portion of their Convertible Senior Notes; the first put date (see Note 8). We allocate the total amount of transaction costs incurred to the liability and equity components using the same proportions as the proceeds from the Convertible Senior Notes. Transaction costs attributable to the liability component were recorded as a direct deduction from the liability component of the Convertible Senior Notes, |