I have seen the following result in some notes in algebraic geometry.
Let $S: \{ f = 0 \} \subset \mathbb{P}^3$ be a nonsingular cubic surface, $A = \left( \frac{\partial^2f}{\partial x_i \partial x_j} \right)_{i,j = 0,\dots,3}$, $H = \det(A)$ the Hessian of $f$ and $B = \text{adj}(A)$.
We set $$ R = \sum_{i, j = 0}^{3} B_{i,j} \ \frac{\partial H}{\partial x_i} \frac{\partial H}{\partial x_j} $$
and $$ T = \sum_{i, j = 0}^{3} A_{i,j} \ B_{i,j}. $$
Then 27 lines are the intersection of $S$ with $F : \{ R - 4 HT = 0 \}$.
What is the name of this result? Where can one find the proof?
Is it true for singular cubic surfaces (if we count lines with multiplicity)?