Cal. Rev. & Tax. Code § 19504.5
(a)
(b)
(1) Paragraph (1) of subdivision (a) shall not apply to any portion, item, or component of the tax-related computer software source code if all of the following apply:
(A) The Franchise Tax Board is unable to otherwise reasonably ascertain the correctness of any item on a return from either of the following:
(2) Paragraph (1) of subdivision (a) shall not apply to any of the following:
(3) For purposes of paragraph (1), the Franchise Tax Board shall be treated as meeting the requirements of subparagraphs (A) and (B) of that paragraph if all of the following apply:
(c)
(2) Notwithstanding any other provision of this section, and in addition to any protections ordered pursuant to paragraph (1), in the case of software that comes into the possession or control of the Franchise Tax Board in the course of any examination with respect to any taxpayer, all of the following shall apply:
(C)
(E) At the end of the period during which the software may be used under subparagraph (A), both of the following apply:
(G)
(i) The Franchise Tax Board shall provide to the taxpayer and the owner of any interest in the software, as the case may be, a written agreement, between the Franchise Tax Board and any person who is not an officer or employee of the State of California and who will analyze or otherwise have access to that software, which provides that the person agrees not to do either of the following:
(d) For purposes of this section:
(2) “Computer software source code” means all of the following:
(3) “Computer software executable code” means both of the following: